Re: [R] adding in missing values in a sequence

2007-11-14 Thread Marc Schwartz
On Thu, 2007-11-15 at 09:41 +1100, Andrew Hoskins wrote: > Hi, > > I have a data frame with two columns of data, one an indexing column > and the other a data column. My issue is, this data frame is > incomplete and there are missing lines. I want to know how I can > find and add data into

[R] adding in missing values in a sequence

2007-11-14 Thread Andrew Hoskins
Hi, I have a data frame with two columns of data, one an indexing column and the other a data column. My issue is, this data frame is incomplete and there are missing lines. I want to know how I can find and add data into these missing lines. See example below ## Example data data <- dat

Re: [R] adding in missing values in a sequence

2007-11-14 Thread Andrew Hoskins
That seems to have solved it. Thanks Mark. On 15/11/2007, at 9:57 AM, Marc Schwartz wrote: > > On Thu, 2007-11-15 at 09:41 +1100, Andrew Hoskins wrote: >> Hi, >> >> I have a data frame with two columns of data, one an indexing column >> and the other a data column. My issue is, this data frame i

Re: [R] adding in missing values in a sequence

2007-11-14 Thread Achim Zeileis
On Thu, 15 Nov 2007, Andrew Hoskins wrote: > Hi, > > I have a data frame with two columns of data, one an indexing column > and the other a data column. My issue is, this data frame is > incomplete and there are missing lines. I want to know how I can > find and add data into these missing lines.