-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
project.org] On Behalf Of Sam Steingold
Sent: Thursday, September 06, 2012 3:43 PM
To: David Winsemius
Cc: r-help at r-project.org
Subject: Re: [R] merge a list of data frames
* David Winsemius <qjvafrzvhf at pbzpnfg.arg> [2012-09-05 21:02:16 -
On Sep 5, 2012, at 8:51 PM, Sam Steingold wrote:
I have a list of data frames:
List of 4
$ :'data.frame': 700773 obs. of 3 variables:
..$ V1: chr [1:700773] "200130446465779" "200070050127778"
"200030633708779" "200010587002779" ...
..$ V2: int [1:700773] 0 0 0 0 0 0 0 0 0 0 ...
..$ V3: num [1:700773] 1 1 1 1 1 ...
$ :'data.frame': 700773 obs. of 3 variables:
..$ V1: chr [1:700773] "200130446465779" "200070050127778"
"200030633708779" "200010587002779" ...
..$ V2: int [1:700773] 0 0 0 0 0 0 0 0 0 0 ...
..$ V3: num [1:700773] 1 1 1 1 1 ...
$ :'data.frame': 700773 obs. of 3 variables:
..$ V1: chr [1:700773] "200130446465779" "200070050127778"
"200030633708779" "200010587002779" ...
..$ V2: int [1:700773] 0 0 0 0 0 0 0 0 0 0 ...
..$ V3: num [1:700773] 1 1 1 1 1 ...
$ :'data.frame': 700773 obs. of 3 variables:
..$ V1: chr [1:700773] "200160325893778" "200130647544079"
"200130446465779" "200120186959078" ...
..$ V2: int [1:700773] 0 0 0 0 0 0 0 0 0 0 ...
..$ V3: num [1:700773] 1 1 1 1 1 1 1 1 1 1 ...
I want to merge them.
Why? What are you expecting?
these are the results of applying a model to the test data.
the first column is the ID
the second column is the actual value
the third column is the model score
after I will merge the frames, I will
1. check that all the V2 columns are identical and drop all but one (I
guess I could just merge on c("V1","V2") instead, right?)