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

3- Using R as a Calculator
To begin with let us practice using R as a calculator for basic arithmetic. Using lecture material perform the following computations in a new R chunk and return the outputs:
17(4+3(23))
10242-e-2
log(4)8+3-5
Hint: Recall that R has functivnality for most mathematical operations, see functions sqrt(), exp() and log().
4- 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?
3 - Using R as a Calculator To begin with let us

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!