Generate covariate datasets using existing functions.

prepare_covariate_dataset(
  name = "all_total",
  main = ".",
  settings = directory_settings(),
  datafile = "Water/eden_covariates.csv",
  filename = "counts_all_total.csv",
  minyear = 1986,
  maxyear = this_year(),
  na.strings = "",
  regions = "all",
  save = TRUE,
  overwrite = TRUE,
  quiet = FALSE,
  verbose = FALSE
)

Arguments

name

character name of the data set.

main

character value of the name of the main component of the directory tree.

settings

list of controls for the directory, with defaults set in directory_settings that should generally not need to be altered.

datafile

the path to the datafile within the folder for EvergladesWadingBird data

filename

character value of the file for saving the output.

minyear

Earliest year to include

maxyear

Most recent year to include

na.strings

a character vector of strings which are to be interpreted as NA values. Blank fields are also considered to be missing values in logical, integer, numeric and complex fields. Note that the test happens after white space is stripped from the input, so na.strings values may need their own white space stripped in advance.

regions

character vector of the region(s) to include.

save

logical indicator controlling if the output should be saved out.

overwrite

logical indicator of whether or not the existing files should be updated (most users should leave as TRUE).

quiet

logical indicator if progress messages should be quieted.

verbose

logical indicator if detailed messages should be shown.

Value

data.frame for the specified data set.