get_customers_within_distance: Get Sorted List of Customers Within Distance to Campus...

Description Usage Arguments Value Examples

Description

Get Sorted List of Customers Within Distance to Campus Location

Usage

1
2
get_customers_within_distance(customers_path, cutoff_distance,
  intercom_locations_path, intercom_location_name)

Arguments

customers_path

Path to customer list in JSON format.

cutoff_distance

Max distance in km to customers.

intercom_locations_path

Path to list of Intercom locations in .csv format

Value

A data frame with name and user_id of those customers that are within 100 km of the Intercom Dublin Campus, sorted by user_id

Examples

1
2
get_customers_within_distance("./path_to_customers.json", cutoff_distance,
                              "./path_to_campus_locations.csv")

cormac85/intercom_assignment documentation built on May 5, 2019, 2:41 a.m.