Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread arun
1116 1 1 0 1 0  # 2051 0 0 0 0 0 A.K. - Original Message - From: Andrea Goijman To: R help Cc: Sent: Wednesday, January 16, 2013 10:42 AM Subject: [R] Changing frequency values to 1 and 0 Dear list, I'm working with a large data set, where I grouped several species in one group

Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread Andrea Goijman
# 2051 0 0 1 0 1 > > #, , guild = OTHER > # > # Rep > #Site 1 2 3 4 5 > # 1086 1 1 1 0 1 > # 1112 1 1 0 0 1 > # 1115 1 0 1 1 1 > # 1116 1 1 0 1 0 > # 2051 0 0 0 0 0 > A.K. > > > > > > > - Original Message - > From: Andrea Go

Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread arun
Sent: Wednesday, January 16, 2013 10:42 AM Subject: [R] Changing frequency values to 1 and 0 Dear list, I'm working with a large data set, where I grouped several species in one group (guild). Then I reshaped my data as shown below. Now, I just want to have "Rep" only as 1 or 0. I&#

Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread Andrea Goijman
Sure! Although I'm not sure how to use dput() Here is more detail and some data what I want is that the repetitions in Y (at the end) only have 1 or 0... > library(reshape) > library(car) > > ###Read in the occurence data > occ.data <- read.table("Occ_short.csv", header=TRUE,sep=",",na.string

Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread Jose Iparraguirre
rg [mailto:r-help-boun...@r-project.org] On Behalf Of Andrea Goijman Sent: 16 January 2013 15:42 To: R help Subject: [R] Changing frequency values to 1 and 0 Dear list, I'm working with a large data set, where I grouped several species in one group (guild). Then I reshaped my data as sho

Re: [R] Changing frequency values to 1 and 0

2013-01-16 Thread Jessica Streicher
Sorry, but i don't get the problem at all. Could you provide a bit of y by using dput()? Can you provide an example of how you want the data to look like after the transformation? On 16.01.2013, at 16:42, Andrea Goijman wrote: > Dear list, > > I'm working with a large data set, where I groupe

[R] Changing frequency values to 1 and 0

2013-01-16 Thread Andrea Goijman
Dear list, I'm working with a large data set, where I grouped several species in one group (guild). Then I reshaped my data as shown below. Now, I just want to have "Rep" only as 1 or 0. I'm not being able to change the values of rep>=1 to 1... tried many things and I'm not being successful! >