given vector of blockids, get state abbreviation of each unused. Not needed if you have sites2blocks table that includes a bgid column
Source:R/state_from_latlon.R
state_from_blockid.Rd
given vector of blockids, get state abbreviation of each unused. Not needed if you have sites2blocks table that includes a bgid column
Examples
x = sample(blockpoints$blockid, 3)
state_from_blockid(x)[]
#> Error in state_from_blockid(x): could not find function "state_from_blockid"
mapfast(blockpoints[blockid %in% x, ])
all.equal(state_from_blockid(x), state_from_blockid_table(blockpoints[blockid %in% x, ]))
#> Error in state_from_blockid(x): could not find function "state_from_blockid"