On Nov 15, 2011, at 6:46 AM, R. Michael Weylandt wrote:
Good morning Rob,
First off, thank you for providing a reproducible example. This is one
of those little tasks that R is pretty great at, but there exist
\infty ways to do so and it can be a little overwhelming for the
beginner: here's
.n4.nabble.com/correlations-between-columns-for-each-row-td4039193.html
)
-Original Message-
From: R. Michael Weylandt
Sent: Tuesday, November 15, 2011 12:46 PM
To: robgriffin247
Cc: r-help@r-project.org
Subject: Re: [R] averaging between rows with repeated data
Good morning Rob,
First
terday:
> http://r.789695.n4.nabble.com/correlations-between-columns-for-each-row-td4039193.html
> )
>
>
> -Original Message- From: R. Michael Weylandt
> Sent: Tuesday, November 15, 2011 12:46 PM
> To: robgriffin247
> Cc: r-help@r-project.org
> Subject: Re: [R] avera
Good morning Rob,
First off, thank you for providing a reproducible example. This is one
of those little tasks that R is pretty great at, but there exist
>\infty ways to do so and it can be a little overwhelming for the
beginner: here's one with the base function ave():
cbind(ave(example[,2:4], e
*The situation (or an example at least!)*
example<-data.frame(rep(letters[1:10]))
colnames(example)[1]<-("Letters")
example$numb1<-rnorm(10,1,1)
example$numb2<-rnorm(10,1,1)
example$numb3<-rnorm(10,1,1)
example$id<-c("CG234","CG232","CG441","CG128","CG125","CG182","CG232","CG441","CG232","CG125")
5 matches
Mail list logo