How to define a simple dataset in R -
i have simple dataset i.e.(1.22 -0.86 -1.35 -1.46 0.67 2.77 -0.50 0.34 -0.57 -0.05).
define data set in r don't have manually calculate mean , variance , possibly plot this. how do this?
i have tried data<-[1.22 -0.86 -1.35 -1.46 0.67 2.77 -0.50 0.34 -0.57 -0.05]
error: unexpected numeric constant in "data<-1.22 -0.86 -1.35 -1.46 0.67"
data <- c(1.22,-0.86,-1.35,-1.46,0.67,2.77,-0.50,0.34,-0.57,-0.05) mean(data) var(data) plot(data) plot(sort(data)) hist(data)
may recommend http://cran.r-project.org/doc/manuals/r-intro.pdf ?
Comments
Post a Comment