Re: [R] table function in a matrix

2012-07-02 Thread Sarah Auburn
Thank you From: Rui Barradas To: Sarah Auburn Cc: r-help@r-project.org Sent: Monday, 2 July 2012, 17:39 Subject: Re: [R] table function in a matrix Hello, See the difference. a <- b <- c("A", "A", "B", "B", "C", "A", &quo

Re: [R] table function in a matrix

2012-07-02 Thread Rui Barradas
. Sorry one more query for one of my datasets which has NAs (missing genotypes). Is there any way in which I can count NAs? Many thanks! Sarah From: Sarah Auburn To: Petr Savicky Cc: "r-help@r-project.org" Sent: Thursday, 7 June 2012, 23:24 Subject: Re: [R] table function in a mat

Re: [R] table function in a matrix

2012-07-02 Thread Sarah Auburn
ct: Re: [R] table function in a matrix Perfect, thank you! From: Petr Savicky To: r-help@r-project.org Sent: Thursday, 7 June 2012, 19:42 Subject: Re: [R] table function in a matrix On Wed, Jun 06, 2012 at 11:02:46PM -0700, Sarah Auburn wrote: > Hi, > I am trying to get a summary of the cou

Re: [R] table function in a matrix

2012-06-07 Thread Sarah Auburn
Perfect, thank you! From: Petr Savicky To: r-help@r-project.org Sent: Thursday, 7 June 2012, 19:42 Subject: Re: [R] table function in a matrix On Wed, Jun 06, 2012 at 11:02:46PM -0700, Sarah Auburn wrote: > Hi, > I am trying to get a summary of the cou

Re: [R] table function in a matrix

2012-06-07 Thread Petr Savicky
On Wed, Jun 06, 2012 at 11:02:46PM -0700, Sarah Auburn wrote: > Hi, > I am trying to get a summary of the counts of different variables for each > sample in a matrix of the form "m" below to generate an output as shown. > (Ultimately I want to generate a stacked barchart for each sample). I am on

[R] table function in a matrix

2012-06-07 Thread Sarah Auburn
Hi, I am trying to get a summary of the counts of different variables for each sample in a matrix of the form "m" below to generate an output as shown. (Ultimately I want to generate a stacked barchart for each sample). I am only able to get the "table" function to work on one sample (column) at