Lists
A container of different elements or different data types.
> listone <- list(c(1,2,3),"your name",TRUE,2L,1+2i,2.36)
Assigning different type of values in a container called listone which is of type list
Printing the listone
> print(listone)
Output
[[1]]
[1] 1 2 3
[[2]]
[1] "your name"
[[3]]
[1] TRUE
[[4]]
[1] 2
[[5]]
[1] 1+2i
[[6]]
[1] 2.36
No comments:
Post a Comment