Dear R-experts,
I am struggling with the following problem, and I am looking for advice
from more experienced R-users: I have a data frame with 2 identifying
variables (comn and mi), and an output variable (x). comn is a variable for
a company and mi is a variable for a month.
comn-c(abc, abc,
@r-project.org
Sent: Sunday, December 4, 2011 12:32 PM
Subject: [R] Group several variables and apply a function to the group
Dear R-experts,
I am struggling with the following problem, and I am looking for advice
from more experienced R-users: I have a data frame with 2 identifying
variables (comn
://www.fws.gov/redbluff/rbdd_jsmp.aspx
*From:* Aurélien PHILIPPOT aurelien.philip...@gmail.com
*To:* R-help@r-project.org
*Sent:* Sunday, December 4, 2011 12:32 PM
*Subject:* [R] Group several variables and apply a function to the group
Dear R-experts,
I am struggling with the following
Aurélien PHILIPPOT wrote
Dear R-experts,
I am struggling with the following problem, and I am looking for advice
from more experienced R-users: I have a data frame with 2 identifying
variables (comn and mi), and an output variable (x). comn is a variable
for
a company and mi is a variable
: Aurélien PHILIPPOT aurelien.philip...@gmail.com
Subject: [R] Group several variables and apply a function to the group
To: R-help@r-project.org
Received: Sunday, December 4, 2011, 3:32 PM
Dear R-experts,
I am struggling with the following problem, and I am
looking for advice
from more
Using the reshape2 package
library(reshape2)
x1 - melt(df, id=c(comn, mi))
dcast(x1, comn + mi ~ variable, sd)
--- On Sun, 12/4/11, Aurélien PHILIPPOT aurelien.philip...@gmail.com wrote:
From: Aurélien PHILIPPOT aurelien.philip...@gmail.com
Subject: [R] Group several variables
6 matches
Mail list logo