[R] glm analysis repeated for 900 variables

Rolf Turner r.turner at auckland.ac.nz
Wed Sep 23 22:00:30 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

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list