Clean Updated (Peskas 2) landings data
clean_updated_landings.Rd
New Peskas 2 survey landings include some new questions and some new edits. This function facilitates the integration of the new survey data with the legacy ones.
Examples
if (FALSE) { # \dontrun{
authentication_details <- readLines("location_of_json_file.json")
# obtain the latest version of all files corresponding to timor-landings-v1
peskas2_data <-
cloud_object_name(
prefix = "timor-landings-v3",
version = "latest",
provider = "gcs",
options = list(
service_account_key = authentication_details,
bucket = "my-bucket"
)
)
peskas2_raw <-
readr::read_csv(file = peskas2_data, col_types = readr::cols(.default = readr::col_character()))
clean_updated_landings(legacy_raw)
} # }