View source: R/clean-raw-data.R
clean_legacy_landings | R Documentation |
Legacy landings data frame has a different structure and uses a different syntax from recent landings. This function restructures legacy raw data to the same format and syntax as recent landings.
clean_legacy_landings(x)
x |
Data frame containing raw data from legacy landings (SSF landings). |
Data frame containing legacy landings data in the same syntax as recent landings.
## Not run:
authentication_details <- readLines("location_of_json_file.json")
# obtain the latest version of all files corresponding to timor-landings-v1
legacy_data <-
cloud_object_name(
prefix = "timor-landings-v1",
version = "latest",
provider = "gcs",
options = list(
service_account_key = authentication_details,
bucket = "my-bucket"
)
)
legacy_raw <-
readr::read_csv(file = legacy_data, col_types = readr::cols(.default = readr::col_character()))
clean_legacy_landings(legacy_raw)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.