Re: [R] Retrieving original data frame after repetition

2009-07-31 Thread Marc Schwartz
On Jul 31, 2009, at 5:52 AM, Jose Iparraguirre D'Elia wrote: Hi Marc (et al) I've spoken too soon... Please, have a look at this chunk of real world data. The data frame a below contains the first ten records (and first two columns) of a survey dataset. It reads as follows: 1662 people have

Re: [R] Retrieving original data frame after repetition

2009-07-31 Thread Jose Iparraguirre D'Elia
ose -Original Message- From: Marc Schwartz [mailto:marc_schwa...@me.com] Sent: 30 July 2009 20:13 To: Jose Iparraguirre D'Elia Cc: r-help@r-project.org Subject: Re: [R] Retrieving original data frame after repetition On Jul 30, 2009, at 11:15 AM, Jose Iparraguirre D'Elia wrot

Re: [R] Retrieving original data frame after repetition

2009-07-30 Thread Marc Schwartz
On Jul 30, 2009, at 11:15 AM, Jose Iparraguirre D'Elia wrote: Dear R users, Consider the first two columns of a data frame like this: z[,1:2] x y 1 1 1 2 2 2 3 3 3 4 1 4 Imagine that y represents the times that the value x happens in a population. But z is not exactly a frequency tab

[R] Retrieving original data frame after repetition

2009-07-30 Thread Jose Iparraguirre D'Elia
Dear R users, Consider the first two columns of a data frame like this: > z[,1:2] x y 1 1 1 2 2 2 3 3 3 4 1 4 Imagine that y represents the times that the value x happens in a population. But z is not exactly a frequency table, because in z we have x=1 twice. So, the x=1 in the