Once you have finished querying data from the API, this function will send the folder of files retrieved from the API through a pipeline of functions to produce the output dataset to the shiny app. You can use this if several manual data cleaning steps (renaming desks or keyword values), as well as having already geocoded locations, are already complete or are being skipped.

nyt_build_data(
  desks_to_replace = FALSE,
  keyword_values_to_replace = FALSE,
  keyword_names_to_replace = FALSE,
  glocations_to_code = FALSE,
  ...
)

Arguments

desks_to_replace

whether you need to rename desks

keyword_values_to_replace

whether you need to rename keyword values

keyword_names_to_replace

whether you need to rename keyword categories

glocations_to_code

whether you need to geocode locations

...

any other arguments

Value

The full nested_df and govt.csv required as input to the shiny app

Examples

if (FALSE) { nyt_build_data() }