get_data: Get 'data_name' data

View source: R/get_data.R

get_dataR Documentation

Get data_name data

Description

Import data, running get_data_name to requery original data source, if get_new. Data is saved to (and imported from) ⁠file.path(save_dir, data_name, "paste0(data_name,"_raw.rds"))⁠. save_dir and get_new can be passed via ... to get_data_name, otherwise, default values from get_data_name are used (respectively: FALSE and here::here("out", "ds", data_name, paste0(data_name, "_raw.rds")))

Usage

get_data(data_name, ...)

Arguments

data_name

Character. Name of data source. e.g. 'tern' or 'gbif'.

...

Passed to get_data_name.

Value

Dataframe, either loaded from save_dir or from a new query to data_name. If new data is queried, .rds results file will be created, overwriting if necessary. Timing and number of records log in save_dir.

See Also

Other Help with combining data sources: make_data(), remap_data_names()


Acanthiza/envImport documentation built on July 26, 2024, 11:18 p.m.