Calculate daily migration by simple repartition
Function to calculate daily migration from migration monitoring whose length is less than one day, typically video recording whose period are instant events.
fun_report_mig_mult(time.sequence, datasub, negative = FALSE)
the time sequence to be filled in with new data
the initial dataset
"boolean", default FALSE, TRUE indicates a separate sum for negative and positive migrations
A data.frame with number summed over over the time.sequence. The function returns the same output than fun_report_mig_mult_overlaps but is intended to work faster. In the data.frame, the total number is "Effectif_total" and corresponds to the addition of numbers and numbers converted from weight, the total weight is "Poids_total"+"poids_depuis_effectifs" and corresponds to weighed glass eel plus glass eel number converted in weights.
The method uses sqldf, configured to access a postgres database, and runs caclulations on a database called test (the username and password for test are set in the calcmig.csv configuration file).