Skip to content
Prev 12423 / 29559 Next

Problem with aggregating UScensus2000 FL data

Hi Roger,
On Mon, Aug 1, 2011 at 2:38 PM, Roger Bivand <Roger.Bivand at nhh.no> wrote:
Sorry I wasn't clear. The data and the county function are in the
UScensus2000 packages. Let me try again. A complete example leading to
the error is

library(UScensus2000)
library(maptools)
data(countyfips)

tmp <- county(fips = gsub("^..", "",
countyfips$fips[countyfips$acronym == "fl"]), state = "fl", level =
"tract")
dat <- as.data.frame(tmp)
tmp.county <- unionSpatialPolygons(tmp, dat$county)
I would if I could figure out how to convert a SpatialPolygons object
to a Polygons object... I'm just getting started with sp.

Thanks,
Ista

  
    
Message-ID: <CA+vqiLHOPHH-hhdVYVYEFMHLM7HfNfSMgPc8NmaT6dTbAbYh_A@mail.gmail.com>
In-Reply-To: <14263_1312223893_4E36F293_14263_6767_1_alpine.LRH.2.00.1108012034190.22644@reclus.nhh.no>