Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Sample R program of all basic functions

Language: Layout:
+ ] Show input
Absolute running time: 0.22 sec, cpu time: 0.44 sec, memory peak: 31 Mb, absolute service time: 0,22 sec 
edit mode |  history  | discussion
[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