addAnnotation {PAMpal} | R Documentation |
Add Annotation Data to an AcousticStudy Object
Description
Adds annotation data to an AcousticStudy
object, usually in preparation for exporting to an external source.
Most pieces of the annotation form will be filled in by the user when
the function is called, but lat
, lon
, time_start
,
time_end
, freq_low
, freq_high
, source_id
,
and annotation_id
will be filled in automatically based on data
in each AcousticEvent. Annotations are stored for each
event in the ancillary
slot.
Usage
addAnnotation(x, anno, verbose = TRUE)
prepAnnotation(
x,
specMap = NULL,
mode = c("event", "detection"),
interactive = FALSE,
...
)
getAnnotation(x)
checkAnnotation(x)
export_annomate(x, file = NULL)
matchRecordingUrl(anno, rec)
Arguments
x |
an AcousticStudy or AcousticEvent object |
anno |
an annotation dataframe |
verbose |
logical flag to print messages |
specMap |
data.frame to map species ids in |
mode |
one of |
interactive |
logical flag to fill annotation data interactively (not recommended) |
... |
additional named arguments to fill in annotation data. If names match a column in the annotation, that value will be used for all events or detections in the annotation |
file |
file to write a CSV of the annotations to, if |
rec |
dataframe of recording url information. Must have column
|
Value
The same object as x
with an $annotation
item added
the the ancillary
slot of each event in x
Author(s)
Taiki Sakai taiki.sakai@noaa.gov