log (1000)
## [1] 6.907755
abs (-3)
## [1] 3
sqrt(16)
## [1] 4
#Creating objects ( Variables)
x <- 10
y <- 5
A <- x + y
A
## [1] 15
#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
## [1] 11 13 19 2 10 1
#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"
#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
## Temperature Rate
## 1 25 0.15
## 2 30 0.30
## 3 35 0.55
## 4 40 0.80