Displaying 1 result from an estimated 1 matches for "multilotbldgarea".
2010 Feb 17
1
Procedure not working for actual data
...n do without
sending you all of my data.
Cheers,
JR
#Sample data
Bldgid<-c(1000,1000,1001,1002,1003,1003)
Maplot<-c(20000,20001,30000,30001,40000,40001)
Area<-c(40,170,50,100,100,4.9)
#Construct Sample dataframe
MultiLotBldgs..<-data.frame(Bldgid,Maplot,Area)
#Get Building Areas
MultiLotBldgArea.X <- unlist(tapply(MultiLotBldgs..$Area,
MultiLotBldgs..$Bldgid,
function(x) x))
# Calculate the proportion of the total building area in each piece of the
building
MultiLotBldgProp.X <- unlist(tapply(MultiLotBldgs..$Area,
MultiLotBldgs..$Bldgid,...