Skip to contents

This writes the filtered table to disk as CSV or TSV and returns the file path invisibly.

Usage

timefish_download(
  table = "census",
  filters = list(),
  ...,
  directory = tempdir(),
  file = NULL,
  format = c("csv", "tsv"),
  overwrite = TRUE,
  ignore_case = TRUE
)

Arguments

table

One of census, location, or taxonomic.

filters

Optional named list of filters.

...

Additional named filters.

directory

Output directory.

file

Optional file name. If omitted, a date-stamped name is created.

format

Output format, either csv or tsv.

overwrite

Overwrite an existing file if it already exists.

ignore_case

Treat character filters as case-insensitive matches.

Value

The path to the written file, invisibly.

Examples

if (FALSE) { # \dontrun{
timefish_download("location", country = "Brazil", state = "Santa Catarina")
} # }