Skip to contents

Unzips an EBD data download file, and saves any of three selected data files: main dataset of vetted observation records, sampling event data (SED), and unvetted records.

dataset_str varies with options selected when downloading the data; it may contain district-level admin. codes, or species codes, or tags indicating whether or not SED and unvetted data are included.

Usage

unzip_ebd(
  dataset_str = "ebd_IN_unv_smp_rel",
  unzip_which = c("ebd", "sed"),
  dir_name = NULL
)

Arguments

dataset_str

character; the string in the file name of the data download, ending with _rel

unzip_which

character; vector listing which of "ebd", "sed" and "unv" to unzip

dir_name

character; specify subfolder name of zip file (if exists), without the trailing slash

Value

Does not return output. Specified files are unzipped and saved in the local directory.