FIPS - for a set of points (lat,lon) quickly find the blockgroup each is inside
Source:R/FIPS_FUNCTIONS.R
fips_bg_from_latlon.Rd
FIPS - for a set of points (lat,lon) quickly find the blockgroup each is inside
Usage
fips_bg_from_latlon(
df = testpoints_10[1:2, ],
nblocks = 50,
nbg = 3,
radius1 = 3,
quiet = TRUE
)
See also
state_from_latlon()
(different approach, unclear which is faster)
Examples
if (FALSE) { # \dontrun{
# Looks like it finds the right blockgroup:
x10 = fips_bg_from_latlon(testpoints_10)
mapfast( data.frame(ejam_uniq_id = x10[3]) )
mapfast(testpoints_10[3, ], radius = 0.1)
# Looks like it finds the right blockgroup:
x100 = fips_bg_from_latlon(testpoints_100)
mapfast( data.frame(ejam_uniq_id = x100[34]) )
mapfast(testpoints_100[34, ], radius = 0.1)
} # }