Re: [R] Help using Cast (Text) Version

2010-01-19 Thread Steve Sidney
...@mweb.co.za; r-help@r-project.org Sent: Monday, January 18, 2010 9:43 PM Subject: Re: [R] Help using Cast (Text) Version If you can point me towards a doc that explains this in simple terms I would be obliged. Don't expect you to have to provide the answer. Any of the introductory texts should

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread Steve Sidney
, 2010 12:38 AM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 4:37 PM, Steve Sidney wrote: Well now I am totally baffled !! Using sum( !is.na(b[,3])) I get the total of all col 3 except those that are NA - Great solves the first problem What I can't seem

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread David Winsemius
2 4 3 5 7 Regards Steve - Original Message - From: David Winsemius dwinsem...@comcast.net To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Monday, January 18, 2010 12:38 AM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 4:37 PM, Steve

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread David Winsemius
To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Monday, January 18, 2010 12:38 AM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 4:37 PM, Steve Sidney wrote: Well now I am totally baffled !! Using sum( !is.na(b[,3])) I get the total of all

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread Steve Sidney
...@mweb.co.za; r-help@r-project.org Sent: Monday, January 18, 2010 3:58 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 18, 2010, at 8:53 AM, David Winsemius wrote: On Jan 18, 2010, at 7:58 AM, Steve Sidney wrote: Hi David Thanks for your patience, as well as thanks to Dennis Murphy

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread David Winsemius
Sidney sbsid...@mweb.co.za; r-help@r-project.org Sent: Monday, January 18, 2010 3:58 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 18, 2010, at 8:53 AM, David Winsemius wrote: On Jan 18, 2010, at 7:58 AM, Steve Sidney wrote: Hi David Thanks for your patience, as well as thanks

Re: [R] Help using Cast (Text) Version

2010-01-18 Thread hadley wickham
If you can point me towards a doc that explains this in simple terms I would be obliged. Don't expect you to have to provide the answer. Any of the introductory texts should explain the various forms of indexing and the use of the apply family of functions. They are both central to effective

[R] Help using Cast (Text) Version

2010-01-17 Thread Steve Sidney
Sorry to repeat the meassage, not sure if the HTML version has been received - Apologies for duplication Dear list I am trying to count the no of occurances in a column of a data frame and there is missing data identifed by NA. I am able to melt and cast the data correctly as well as sum

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread David Winsemius
On Jan 17, 2010, at 5:31 AM, Steve Sidney wrote: Sorry to repeat the meassage, not sure if the HTML version has been received - Apologies for duplication Dear list I am trying to count the no of occurances in a column of a data frame and there is missing data identifed by NA. I am able

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Steve Sidney
Winsemius dwinsem...@comcast.net To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Sunday, January 17, 2010 4:39 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 5:31 AM, Steve Sidney wrote: Sorry to repeat the meassage, not sure if the HTML version has been

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Ista Zahn
-project.org Sent: Sunday, January 17, 2010 4:39 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 5:31 AM, Steve Sidney wrote: Sorry to repeat the meassage, not sure if the HTML version has been received - Apologies for duplication Dear list I am trying to count

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread David Winsemius
as a vector. So the j-th row entry for the i-th column would be b[[i]][j]. Steve - Original Message - From: David Winsemius dwinsem...@comcast.net To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Sunday, January 17, 2010 4:39 PM Subject: Re: [R] Help using Cast (Text

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Steve Sidney
To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Sunday, January 17, 2010 7:36 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 11:56 AM, Steve Sidney wrote: David Thanks, I'll try that..but no what I need is the total (1's) for each of the rows

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Steve Sidney
to understand the problem. Regards Steve Your help is much appreciated - Original Message - From: David Winsemius dwinsem...@comcast.net To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Sunday, January 17, 2010 7:36 PM Subject: Re: [R] Help using Cast (Text) Version

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread David Winsemius
dwinsem...@comcast.net To: Steve Sidney sbsid...@mweb.co.za Cc: r-help@r-project.org Sent: Sunday, January 17, 2010 7:36 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 11:56 AM, Steve Sidney wrote: David Thanks, I'll try that..but no what I need is the total (1

Re: [R] Help using Cast (Text) Version

2010-01-17 Thread Simon Knapp
, 2010 7:36 PM Subject: Re: [R] Help using Cast (Text) Version On Jan 17, 2010, at 11:56 AM, Steve Sidney wrote: David Thanks, I'll try that..but no what I need is the total (1's) for each of the rows, labelled 1-6 at the top of each col in the table provided. Part of my confusion