[R] Subtracting one based on an If

2010-02-18 Thread LCOG1
For the following: Bldgid-c(1000,1000,1000,1001,1002,1003,1003,1003) Maplot-c(2,20001,20002,3,30001,4,40001,40002) Area-c(40,170,160,50,100,100,90,110) #Construct Sample dataframe MultiLotBldgs..-data.frame(Bldgid,Maplot,Area) CondoLots_ - tapply(MultiLotBldgs..$Maplot,

Re: [R] Subtracting one based on an If

2010-02-18 Thread Ista Zahn
I think you can just use CondoLots[CondoLots 1] - CondoLots[CondoLots 1] -1 -Ista __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and