Skip to contents

The following treatments are performed:

  • data is adapted consistently with scheme (default is floodam.data::scheme_ban)

  • eaip information is added.

Usage

adapt_ban(
  origin,
  destination,
  archive,
  scheme = floodam.data::scheme_ban,
  projection = 4326,
  path_eaip = NULL,
  path_admin = NULL,
  map = FALSE,
  journal = TRUE,
  retrieve = FALSE,
  verbose = TRUE
)

Arguments

origin

character, path to the directory where archive are stored.

destination

character, path to the directory where results should be saved.

archive

character, vector of archive to be adapted.

scheme

data.frame, how archive variables should be treated.

projection

numeric, 4 digits projection to use.

path_eaip

character, path where eaip archives should be found.

path_admin

character, path where admin archives should be found.

map

logical, should a map be plotted (for checking purposes).

journal

logical, should a journal file be saved.

retrieve

logical, should the result be returned.

verbose

logical, should the function give some sumup informations.

Value

if retrieve = TRUE, data.frame of adapted data stored in archive.

Author

Frédéric Grelot