The following treatments are performed:

  • data is adapated consistently with theme

  • eaip information is added.

  • if scope is given, a subpart of data is also saved.

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 adpated.

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 check purpose).

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 adapated data stored in archive.

Author

Frédéric Grelot