Description Usage Arguments Value Author(s) References Examples
Converts latitude/longitude coordinates to 15-digit FIPS code. Communicates with FCC API.
1 | latlong2fips(latitude, longitude, number)
|
latitude |
Numeric. Latitude coordinate. |
longitude |
Numeric. Longitude coordinate. |
number |
Numeric. Usually part of a loop index counter |
Character string 15-digit FIPS code corresponding to Lat/Long entry
Loren Collingwood <loren.collingwood@ucr.edu>
https://geo.fcc.gov/api/census/block/
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# EXAMPLE: NOT RUN #
#census_block <- list()
#num_catch <- rep(NA, nrow(nom_geo))
#for (i in 1:nrow(nom_geo)) {
# census_block[[i]] <- latlong2fips(nom_geo$lat[i], nom_geo$lon[i], i)
#}
# Row Bind the list into a data.frame object #
#fips_df <- rbindlist(census_block)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.