Re: [R] how to combine unequal rows and columns in R

2013-01-24 Thread arun
08    NA    NA #6    A 201209 1 1 #7    B 201209 2 2 #8    C 201209    NA    NA #9    D 201209 1 1 #10   F 201209 2 1 A.K. - Original Message - From: Tammy Ma To: "r-help@r-project.org" Cc: Sent: Thursday

Re: [R] how to combine unequal rows and columns in R

2013-01-24 Thread arun
quot;r-help@r-project.org" Sent: Thursday, January 24, 2013 8:33 AM Subject: Re: [R] how to combine unequal rows and columns in R Tammy, # use the function dput() to provide code for us to easily recreate your example data crosspries <- list(structure(list(Product = c("A",

Re: [R] how to combine unequal rows and columns in R

2013-01-24 Thread Adams, Jean
Tammy, # use the function dput() to provide code for us to easily recreate your example data crosspries <- list(structure(list(Product = c("A", "B", "C"), Year_Month = c(201208L, 201208L, 201208L), prod1 = c(1L, 2L, 1L)), .Names = c("Product", "Year_Month", "prod1"), class = "data.frame", row.nam

[R] how to combine unequal rows and columns in R

2013-01-24 Thread Tammy Ma
HI, I have the following list: crosspries $crosspries[[1]] Product Year_Month prod1 A 2012081 B 2012082 C 2012081 $crosspries[[2]] Product Year_Monthprod1