Question: 3 - Using R as a Calculator To begin with let us practice using R as a calculator for basic arithmetic. Using lecture material perform
Using as a Calculator
To begin with let us practice using as a calculator for basic arithmetic. Using lecture material perform the following computations in a new R chunk and return the outputs:
Hint: Recall that has functivnality for most mathematical operations, see functions sqrt exp and
String Concatenation
Enclosing any combination of numbers, letters or symbols in quotes single or double produces a character string.
Add an R chunk and write some code that prints "hello world".
In a new chunk, run the following code:
# defining variables
a "hello"
b "world"
In a third chunk experiment with using paste and pasteO to combine strings. What do you notice?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
