Write to the local database the probabilities associated with runs for a filter
Source :R/writeRunsFilter.R
writeRunsFilter.Rd
Write to the local database the probabilities associated with runs for a filter
Utilisation
writeRunsFilter(
src,
filterName,
motusProjID = NA,
df,
overwrite = TRUE,
delete = FALSE
)
Arguments
- src
SQLite connection (result of
tagme(XXX)
orDBI::dbConnect(RSQLite::SQLite(), "XXX.motus")
)- filterName
Character. Unique name given to the filter
- motusProjID
Character. Optional project ID attached to the filter in order to share with other users of the same project.
- df
Data frame. Containing
runID
,motusTagID
and probability values to save in the local database- overwrite
Logical. When
TRUE
ensures that existing records matching the samefilterName
andrunID
get replaced- delete
Logical. When TRUE, removes all existing filter records associated with the
filterName
and re-inserts the ones contained in the dataframe. This option should be used if the dataframe provided contains the entire set of filters you want to save.