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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -