write_database-report_mig-method: Command line method to write the daily and monthly counts to...

write_database,report_mig-methodR Documentation

Command line method to write the daily and monthly counts to the t_bilanmigrationjournalier_bjo table

Description

Daily values are needed to compare migrations from year to year, by the class report_mig_interannual-class. They are added by by this function.

Usage

## S4 method for signature 'report_mig'
write_database(object, silent = TRUE, check_for_bjo = TRUE)

Arguments

object

an object of class report_mig

silent

: TRUE to avoid messages

check_for_bjo

: do you want to check if data are already present in the bjo table, and delete them, this param was added otherwise connect method when called from report_mig_interannual runs in loops

Value

Nothing, just writes data into the database

Note

the user is asked whether or not he wants to overwrite data only when silent is FALSE, if no data are present in the database, the import is done anyway.

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples

## Not run: 
stacomi(database_expected=FALSE)
data("r_mig")
r_mig<-calcule(r_mig)
write_database(report_mig=r_mig,silent=FALSE)

## End(Not run)

stacomiR documentation built on July 18, 2022, 5:09 p.m.