Re: [R] crosstabulation and unlist function

2009-10-13 Thread eugen pircalabelu
: [R] crosstabulation and unlist function > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of eugen pircalabelu > Sent: Monday, October 12, 2009 1:06 PM > To: David Winsemius > Cc: R-help > Subject: Re: [R

Re: [R] crosstabulation and unlist function

2009-10-12 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of eugen pircalabelu > Sent: Monday, October 12, 2009 1:06 PM > To: David Winsemius > Cc: R-help > Subject: Re: [R] crosstabulation and unlist function >

Re: [R] crosstabulation and unlist function

2009-10-12 Thread rmailbox
f.melt, table ( dd, value ) ) Eric - Original message - From: "eugen pircalabelu" To: "David Winsemius" Cc: "R-help" Date: Mon, 12 Oct 2009 13:05:33 -0700 (PDT) Subject: Re: [R] crosstabulation and unlist function Hello, First of all, thank you David for your

Re: [R] crosstabulation and unlist function

2009-10-12 Thread eugen pircalabelu
erested in the NA occurence). Hopefully, this time my question was a lot more clear. Thank you very much ! - Original Message From: David Winsemius To: David Winsemius Cc: eugen pircalabelu ; R-help Sent: Mon, October 12, 2009 9:36:39 PM Subject: Re: [R] crosstabulation and un

Re: [R] crosstabulation and unlist function

2009-10-12 Thread David Winsemius
On Oct 12, 2009, at 3:25 PM, David Winsemius wrote: On Oct 12, 2009, at 2:36 PM, eugen pircalabelu wrote: Hello R-users, My toy example: aa<-c(1:5) bb<-c(NA,2,NA,4,5) cc<-c(1,2,NA,4,NA) dd<-c("A","B","B","A","C") df<-data.frame(aa,bb,cc,dd=as.factor(dd)) table(unlist(df[,1:3])) Can anyone

Re: [R] crosstabulation and unlist function

2009-10-12 Thread David Winsemius
On Oct 12, 2009, at 2:36 PM, eugen pircalabelu wrote: Hello R-users, My toy example: aa<-c(1:5) bb<-c(NA,2,NA,4,5) cc<-c(1,2,NA,4,NA) dd<-c("A","B","B","A","C") df<-data.frame(aa,bb,cc,dd=as.factor(dd)) table(unlist(df[,1:3])) Can anyone point me to what function let's me do a crosstabulation

[R] crosstabulation and unlist function

2009-10-12 Thread eugen pircalabelu
Hello R-users, My toy example: aa<-c(1:5) bb<-c(NA,2,NA,4,5) cc<-c(1,2,NA,4,NA) dd<-c("A","B","B","A","C") df<-data.frame(aa,bb,cc,dd=as.factor(dd)) table(unlist(df[,1:3])) Can anyone point me to what function let's me do a crosstabulation between table(unlist(df[,1:3])) and df$dd? I wan