#Create R code chunk
# 5.2. type the simple code
6+8
## [1] 14
#many built-in mathematical functions
log(1000) #natural log algorithm
## [1] 6.907755
abs(-3) #absolute values
## [1] 3
sqrt(16) #square root
## [1] 4
#5.3. Creating Objects (Variables)
x <-10
y <- 5
A<-x + y
A
## [1] 15
#5.4. Working with vectors
WG <- c(11,13,19,2,10,1) # assign these values to the WG variable
WG # call all values of WG in R
## [1] 11 13 19 2 10 1
#5.5.Working with characters
samples <- c("A", "B", "C", "D") # assign these texts to the sample variable
samples # call all texts of sample variable in R
## [1] "A" "B" "C" "D"
#5.6. Working with matrices (tables)
Temperature=c(25,30,35,40) # assign these values to the Temperature variable
Rate= c(0.15,0.30,0.55,0.80) # assign these values to the Rate variable
Experiment=data.frame(Temperature,Rate) # create a table with 02 variables: Temperature and Rate
Experiment # call table experiment