ltMergeFiles | R Documentation |
Merge a batch of Lotek .DTA files with an existing database.
ltMergeFiles(files, j, dbdir = MOTUS_PATH$RECV)
files |
either a character vector of full paths to files, or the full path to a directory, which will be searched recursively for .DTA files. |
j |
job, whose ID will be recorded for any new / changed DTAfile record |
dbdir |
path to folder with existing receiver databases; defaults
to |
Any files which are not identical to an existing file are saved
in the file repository at MOTUS_PATH$FILE_REPO
. The names will be
modified if necessary to avoid collisions with existing files.
Remaining files are deleted.
a data_frame reporting the fate of each file, with these columns:
fullname - full path to filename
nameNew - TRUE iff file of this name was not yet in database
dataNew - TRUE iff file with these contents was not yet in database
use - TRUE iff file copied to database
err - if not NA, any error message generated by trying to parse the file
serno - serial number (e.g. "Lotek-1234") of receiver this file is from
ts - first timestamp from a detection in this file
tsLast - last timestamp from a detection in this file
inRepo - file came from file_repo (rather than being a new upload; happens when fully reprocessing)
fid - fileID, if file in or added to DB
If err is not NA for a file, then other fields for that file might not be set appropriately in the return value.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.