> * Prof Brian Ripley [2012-10-08 06:37:07 +0100]:
>
> On 08/10/2012 02:57, Peter Ehlers wrote:
>> On 2012-10-07 14:44, Sam Steingold wrote:
* Peter Ehlers [2012-10-07 10:03:42 -0700]:
On 2012-10-07 08:34, Sam Steingold wrote:
> I know it does not look very good - using the sam
On 08/10/2012 02:57, Peter Ehlers wrote:
On 2012-10-07 14:44, Sam Steingold wrote:
* Peter Ehlers [2012-10-07 10:03:42 -0700]:
On 2012-10-07 08:34, Sam Steingold wrote:
I know it does not look very good - using the same column names to mean
different things in different data frames, but here
On 2012-10-07 14:44, Sam Steingold wrote:
* Peter Ehlers [2012-10-07 10:03:42 -0700]:
On 2012-10-07 08:34, Sam Steingold wrote:
I know it does not look very good - using the same column names to mean
different things in different data frames, but here you go:
--8<---cut here---
> * Peter Ehlers [2012-10-07 10:03:42 -0700]:
>
> On 2012-10-07 08:34, Sam Steingold wrote:
>> I know it does not look very good - using the same column names to mean
>> different things in different data frames, but here you go:
>> --8<---cut here---start->8---
b
#3 3 6
A.K.
Yes, because 'b' is _not_ a 'by'-name.
Peter Ehlers
- Original Message -
From: Sam Steingold
To: r-help@r-project.org
Cc:
Sent: Sunday, October 7, 2012 11:34 AM
Subject: [R] a merge() problem
I know it does not look very good - using the same col
e -
From: Sam Steingold
To: r-help@r-project.org
Cc:
Sent: Sunday, October 7, 2012 11:34 AM
Subject: [R] a merge() problem
I know it does not look very good - using the same column names to mean
different things in different data frames, but here you go:
--8<---cut here---
On 2012-10-07 08:34, Sam Steingold wrote:
I know it does not look very good - using the same column names to mean
different things in different data frames, but here you go:
--8<---cut here---start->8---
x <- data.frame(a=c(1,2,3),b=c(4,5,6))
y <- data.frame(b
I know it does not look very good - using the same column names to mean
different things in different data frames, but here you go:
--8<---cut here---start->8---
> x <- data.frame(a=c(1,2,3),b=c(4,5,6))
> y <- data.frame(b=c(1,2),a=c("a","b"))
> merge(x,y,by.x="a
8 matches
Mail list logo