Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Example: From 'The R Book' 2nd ed. ~ 2.3.2 Generating Factor Levels...
#R version 3.3.2 print("# From 'The R Book' 2nd ed. ~ 2.3.2 Generating factor levels...") # If you want text for the factor levels, rather than numbers, use labels like this: Temp <- gl(2, 2, 24, labels = c("Low", "High")) Soft <- gl(3, 8, 24, labels = c("Hard","Medium","Soft")) M.user <- gl(2, 4, 24, labels = c("N", "Y")) Brand <- gl(2, 1, 24, labels = c("X", "M")) data.frame(Temp,Soft,M.user,Brand)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Practical No 8
Grad-sistema
16-09-2020ExVitor
Sierpinski curve square
CDF- Gaussian (trapezoids method)
Dasi
14-09-2020QRajustelinear
Phyllotaxis in R
Ex11-03-21EdsonAmanda
31-08-2020-Exemplo Ajuste
Please log in to post a comment.