Re: [R] moving data from one frame to another

2012-05-10 Thread Rui Barradas
Maybe with a larger sample of your dataset, 'info'. merge should spread the average to all matching HTm, and with fake data it does. Rui Barradas Daniel_55 wrote > > When I tried doing that, it only merged the averages from column 1 — ARI — > and did not spread the averages for ARI, ATL, BAL. A

Re: [R] moving data from one frame to another

2012-05-10 Thread Rui Barradas
Hello, Maybe merge(five, fiveINFO[, c("HTm", "average")]) Hope this helps, Rui Barradas Daniel_55 wrote > > Hello, > > I am working with two different data frames, and I'd like to move data > from one to the other. Here is the first frame: > >> head(five) > Week Game.ID VTm V

Re: [R] moving data from one frame to another

2012-05-10 Thread Daniel_55
When I tried doing that, it only merged the averages from column 1 — ARI — and did not spread the averages for ARI, ATL, BAL. Any ideas on how I could keep it from making all of the HTms ARI and all of the averages 19.4375? -- View this message in context: http://r.789695.n4.nabble.com/moving-da

[R] moving data from one frame to another

2012-05-10 Thread Daniel_55
Hello, I am working with two different data frames, and I'd like to move data from one to the other. Here is the first frame: > head(five) Week Game.ID VTm VPts HTm HPts HDifferential VDifferential 11 NFL_20050908_OAK@NE OAK 20 NE 3010 -10 21 NFL