[R] Creating a vector in R

arun smartpink111 at yahoo.com
Sun Oct 6 15:35:29 CEST 2013


HI,
Try:
x1 <- (1:100)^2
A.K.

Hi 

I am newbie of using R. Please help me create vector x(1^2, 2^2, 3^2,....,100^2) in R. Thanks you 

I am looking forward to see your reply soon, 

Best wish 

Andrew,



More information about the R-help mailing list