Re: [R] split and common variables

2013-06-05 Thread David Carlson
POIV` [1] "P_CK24" $`PLRT POIV` [1] "P_CK23" "P_CK33" - David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: arun [mailto:smartpink...@yahoo.

Re: [R] split and common variables

2013-06-05 Thread arun
ico Met To: dcarl...@tamu.edu Cc: R help Sent: Wednesday, June 5, 2013 10:30 AM Subject: Re: [R] split and common variables Dear Dr. David, Many thanks for your answer. Now, if I want to see if there are common "name"in those "places" , how can I do it? So, by common I mean, i

Re: [R] split and common variables

2013-06-05 Thread Nico Met
r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Nico Met > Sent: Monday, June 3, 2013 8:42 AM > To: R help > Subject: [R] split and common variables > > Dear all, > > I would like to split the data based on the "place" and then wou

Re: [R] split and common variables

2013-06-03 Thread David Carlson
son Associate Professor of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nico Met Sent: Monday, June 3, 2013 8:42 AM To: R help Subject: [R] split and common variables

Re: [R] split and common variables

2013-06-03 Thread arun
e  value value value value value #<0 rows> (or 0-length row.names) A.K. - Original Message - From: Nico Met To: R help Cc: Sent: Monday, June 3, 2013 9:41 AM Subject: [R] split and common variables Dear all, I would like to split the data based on the "place" and then w

Re: [R] split and common variables

2013-06-03 Thread Adams, Jean
Nico, It is unclear to me what sort of result you are looking for. Can you give an example of what the output would look like using the example data you provided? You can look at the occurrence of names and places using the table() function, table(a$name, a$place) or you could look at the me

[R] split and common variables

2013-06-03 Thread Nico Met
Dear all, I would like to split the data based on the "place" and then would like to see how many "names" were common in place with corresponding "value" . Please find a demo file. Thanks for your expert comment best Nico > dput(dta) structure(list(place = structure(c(3L, 2L, 5L, 6L, 4L, 3L,