> 
> 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

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to