Re: [R] scanning a data set for strings

2012-05-02 Thread Daniel_55
Worked like a charm. Thanks for the help! It's really appreciated. -- View this message in context: http://r.789695.n4.nabble.com/scanning-a-data-set-for-strings-tp4602953p4603410.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] scanning a data set for strings

2012-05-02 Thread R. Michael Weylandt
I think you are looking for something like aggregate(cbind(VPts, HPts) ~ VTm + HTm, data = NFL, sum) but you should look at the examples for ?aggregate to tweak it to what you need. Michael On Wed, May 2, 2012 at 7:45 AM, Daniel_55 wrote: > Hello, > > I'm looking for what I'm sure is a quick a

[R] scanning a data set for strings

2012-05-02 Thread Daniel_55
Hello, I'm looking for what I'm sure is a quick answer. I'm working with a data set that looks like this: Week Game.ID VTm VPts HTm HPts Differential HomeWin 11 NFL_20050908_OAK@NE OAK 20 NE 30 10 FALSE 21 NFL_20050911