prepare_dataset: Prepare all datasets

View source: R/prepare_dataset.R

prepare_datasetR Documentation

Prepare all datasets

Description

Prepare all datasets and store the version into a git repository

Usage

prepare_dataset(
  origin,
  repo,
  end_date = Sys.time(),
  verbose = TRUE,
  push = FALSE,
  strict = TRUE,
  min_observation = 100,
  ...
)

Arguments

origin

DBI connection to the source database

repo

a git2rdata::repository() object

end_date

the latest date to import. Default to now.

verbose

display the progress

push

push the changes to the repository. Defaults to FALSE.

strict

What to do when the metadata changes. strict = FALSE overwrites the data and the metadata with a warning listing the changes, strict = TRUE returns an error and leaves the data and metadata as is. Defaults to TRUE.

min_observation

The minimum number of observations for taking a species into account. Defaults to 100.

...

arguments passed to git2rdata::commit() and git2rdata::push().


inbo/abvanalysis documentation built on April 6, 2023, 5:14 a.m.