[R] glm analysis repeated for 900 variables

Christian Schulz chschulz at email.de
Wed Sep 23 23:05:05 CEST 2009



> 
> On 23/09/2009, at 11:26 PM, Christian Schulz wrote:
> 
> > Hi,
> >
> >
> > nvars <- 902
> > data <-  as.data.frame(matrix(runif(100*nvars),ncol=nvars))
> > colnames(data)[901] <- c('phenotype')
> > colnames(data)[902] <- c('outcome')
> 
> 	<snip>
> 
> Just ***WHAT*** do you think the ``c( )'' is doing for you in
> the construction ``c('phenotype')'' etc. ???
> 
> Such complete misunderstanding of what the c() does or is useful
> for exasperates me, and is unfortunately very wide spread.  If people
> are going to use R, why don't they learn the basic syntax?

> 
> 	cheers,
> 
> 		Rolf Turner
> 

Sorry!
colnames(data)[901:902] <- c('phenotype','outcome')

cheers, Christian




More information about the R-help mailing list