im_geocode_members: Build a Members Data Frame with Geocoded IP Addresses

Description Usage Arguments Author(s) Examples

View source: R/geo.R

Description

Build a Members Data Frame with Geocoded IP Addresses

Usage

1
2
3
4
5
im_geocode_members(
  all_geo_cols = TRUE,
  as_tibble = ironmarch_as_tibble(),
  as_sf = ironmarch_as_sf()
)

Arguments

all_geo_cols

logical(1L), Default TRUE. Whether to return all georeferncesd columns.

as_tibble

logical(1L), Default: ironmarch_as_tibble(). Whether a tibble::tibble() should be returned. Ignored if the {tibble} package is not installed.

as_sf

logical(1L), Default: ironmarch_as_sf(). Whether an sf::st_sf() should be returned. Ignored if the {sf} package is not installed.

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

Examples

1
2
3
4
5
6
7
8
geocoded_members <- im_geocode_members()
geocoded_members

geocoded_cols <-  c("country", "countryCode", "region", "regionName", 
                    "city", "zip", "timezone", "isp", "org", "as")
geocoded_members[, c("name", geocoded_cols)]

plot(im_geocode_members(as_sf = FALSE)[c("lon", "lat")])

knapply/ironmarch documentation built on July 14, 2020, 12:50 a.m.