Re: [R] Trying get away from the "for" loop

2009-10-15 Thread Jason Rupert
ouseMod, SubdivisionHouseMod_tmp) } } Thank you again. --- On Thu, 10/15/09, David Winsemius wrote: > From: David Winsemius > Subject: Re: [R] Trying get away from the "for" loop > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, Oct

Re: [R] Trying get away from the "for" loop

2009-10-15 Thread David Winsemius
You do not offer a workable example, but it appears you might be doing a merge operation. ?merge merge(SubdivisionHouses, BuildingCodes, by.x="BuildYear", by.y="Year") -- David On Oct 15, 2009, at 5:27 PM, Jason Rupert wrote: Argh... I just realized the inefficiency of one of my loops so

[R] Trying get away from the "for" loop

2009-10-15 Thread Jason Rupert
Argh... I just realized the inefficiency of one of my loops so I am trying to get rid of it. I have two data frames: names(SubdivisionHouses) "BuildYear", "SqrFootage", "Exterior" names(BuildingCodes) "Year", "Codes" I am trying to add on the the "Codes" column to according to the "BuildYe