write_database,report_mig-method

0th

Percentile

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

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 report_mig
write_database(object, silent = TRUE,
  check_for_bjo = TRUE)
Arguments
object

an object of class

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

Note

the user is asked whether or not he wants to overwrite data, if no data are present in the database, the import is done anyway. The name of the database is retrieved from the odbc link

Aliases
  • write_database,report_mig-method
  • write_database.report_mig
Examples

stacomi(gr_interface=FALSE,login_window=FALSE,database_expected=FALSE) 
data("r_mig")
r_mig<-calcule(r_mig)
write_database(report_mig=r_mig,silent=FALSE)

Documentation reproduced from package stacomiR, version 0.5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.