M1 Basics R Language
M1 Basics R Language
R Language
Nurwatik,S.T., M.Sc
Contents
+ Vector
A list of numbers, such as (1,2,3,4,5)
R: a<-c(1,2,3,4,5)
+ Command c creates a vector that is assigned to object a
+ Factor
A list of levels, either numeric or string
R: b<-as.factor(a)
+ Vector a is converted into a factor