Read in a specified data file.

read_data(
  main = ".",
  data_name = NULL,
  dataset = "all_total",
  datasets = prefab_count_datasets(),
  settings = directory_settings()
)

read_counts(main = ".", dataset = "all_total", settings = directory_settings())

read_covariates(
  main = ".",
  dataset = "all_water",
  settings = directory_settings()
)

Arguments

main

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

data_name

character representation of the data needed. Current options include "counts" and "covariates".

dataset, datasets

character representation of the grouping name(s) used to define the data. dataset can only be length 1, datasets is not restricted in length.

settings

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

Value

Data requested.