Skip to content
Prev 1904 / 398506 Next

Inherit names ...

On Wed, 20 Jan 1999, John Logsdon wrote:

            
R1data<-alldata[R1,] is what you want (note the comma)
alldata[,c(1,3,5,11:20)]
would give the first, third, fifth, and eleventh through twentieth
columns, or you can refer to them by name: eg
	alldata[,c("y.2","gc.4","gi")]



Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._