[R] Listing Variables

Farrel Buchinsky fjbuch at gmail.com
Wed May 3 17:49:47 CEST 2006


"Uwe Ligges" <ligges at statistik.uni-dortmund.de> wrote in message 
news:4458C63A.7080403 at statistik.uni-dortmund.de...
> vnames <- paste("Height", 1:20, sep=".")

Interesting but not suitable. It creates a name even if such a variable does 
not exist. I have 6000 variables. The numeric component of the variable name 
goes from 0 to about 10000000. The output from the for loop would be largely 
empty space. Thanks for teaching me the paste() which will come in use 
later. I saw a response that makes use of names() or colnames()
-- 
Farrel Buchinsky, MD
Pediatric Otolaryngologist
Allegheny General Hospital
Pittsburgh, PA




More information about the R-help mailing list