Re: [R] Matching Up Values

2008-07-20 Thread Steve Murray
Hmm, I'm having a fair few difficulties using 'merge' now. I managed to get it to work successfully before, but in this case I'm trying to shorten (as oppose to lengthen as before) a file in relation to a 'master' file. These are the commands I've been using, followed by the dimensions of the f

Re: [R] Matching Up Values

2008-07-18 Thread Steve Murray
I think the approach is ok. I'm having difficulties though...! I've managed to get 'merge' working (using the 'all' function as suggested), but for some strange reason, the output file produces 12 extra rows! So now the shorter file isn't the same length as the 'master' file, it's now longer!

Re: [R] Matching Up Values

2008-07-17 Thread hadley wickham
On Fri, Jul 18, 2008 at 5:09 AM, Rolf Turner <[EMAIL PROTECTED]> wrote: > > On 18/07/2008, at 8:42 AM, Steve Murray wrote: > > > >> So what I'm looking to do is, 'pad out' the shorter file, by adding in the >> rows with those that are 'missing' from the longer file (ie. if a particular >> c

Re: [R] Matching Up Values

2008-07-17 Thread Rolf Turner
On 18/07/2008, at 8:42 AM, Steve Murray wrote: So what I'm looking to do is, 'pad out' the shorter file, by adding in the rows with those that are 'missing' from the longer file (ie. if a particular coordinate isn't present in the shorter file but is in the 'longer/master' file),

Re: [R] Matching Up Values

2008-07-17 Thread Peter Alspach
Steve ?merge and the all collection of arguments Peter Alspach > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Murray > Sent: Friday, 18 July 2008 8:43 a.m. > To: r-help@r-project.org > Subject: [R] Matching Up Values > > > Dear all, >