Basic Functionality of R and Variables
Q1. Data Types
a)
R in its most basic form can be used as a calculator. Write some coded math expressions using at least three different operators (including at least one trigonometric function).
Note: R follows the standard order of operations, but this can be controlled by wrapping any expression in ().
5+2-7-8
b)
Name and give an example of the five base data types in R:
'some text'# test
123.456
TRUE
2 + 3i
c)
Construct a vector in R.
A vector is a data structure in R that contains multiple entries of the same type.
c("hall", "world", "mgt 205")