load_data: Load the cleaned and jittered data. Optionally do various...

View source: R/data_prep.R

load_dataR Documentation

Load the cleaned and jittered data. Optionally do various cleaning/data prep tasks. #' @export

Description

Load the cleaned and jittered data. Optionally do various cleaning/data prep tasks. #' @export

Usage

load_data(
  google_id,
  local_path = NULL,
  dedup = FALSE,
  drop_missing_coords = FALSE,
  to_numeric = FALSE,
  N = 0
)

Arguments

google_id

(str) Google file ID. File must be set to shareable via link.

local_path

(str) (Optional) Local path to the data.

dedup

(bool) (Optional) Whether or not to remove duplicate rows (occurs when someone moves)

drop_missing_coords

(bool) (Optional) Whether or not to drop rows with missing X/Y coordinates

to_numeric

(bool) (Optional) Whether or not to convert character columns (gender) to numeric

N

(int) (Optional) A positive integer indicating the years to keep for each person

Value

(data.frame) A data frame of people

Examples

load_data('abc123', dedup=TRUE, drop_missing_coords=FALSE, ...)

paulsavala/nebcs documentation built on March 20, 2022, 9:24 a.m.