Sample R program of all basic functions
[1] "red" "green" "yellow" "red" "red"
[[1]]
[1] 2 5 3
[[2]]
[1] 21.3
[[3]]
function (x) .Primitive("sin")
[,1] [,2] [,3]
[1,] "a" "a" "b"
[2,] "e" "f" "g"
, , 1
[,1] [,2] [,3]
[1,] "green" "yellow" "green"
[2,] "yellow" "green" "yellow"
[3,] "green" "yellow" "green"
, , 2
[,1] [,2] [,3]
[1,] "yellow" "green" "yellow"
[2,] "green" "yellow" "green"
[3,] "yellow" "green" "yellow"
[1] red green yellow red red
Levels: green red yellow
[1] "applying the nlevels function we can know the number of distinct values"
[1] 3
gender height weight Age
1 Male 152.0 81 42
2 Male 171.5 93 38
3 Female 165.0 78 26
|
|