Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] multiple assignments ?

Maas James Dr (MED)

2010-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply
Simple one, have read and googled, still no luck!

I want to create several empty vectors all of the same length.

I would like multiple empty vectors (vec1, vec2, vec3) and want to create them all in one line.

I've tried

vec1,vec2,vec3 <- vector(length=5)
and
c(vec1,vec2,vec3) <- vector(length=5)

and several other attempts but nothing seems to work ... suggestions?

Thanks

Jim

===============================
Dr. Jim Maas
University of East Anglia


 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.