addNote | R Documentation |
Adds a note to an AcousticEvent or AcousticStudy. Notes can either be accessed with the "getNotes" function, or up to 6 notes will be printed when the object is printed
addNote(x, to = c("study", "event"), evNum = 1, label = NULL, note)
getNotes(x)
x |
An AcousticStudy or AcousticEvent object |
to |
One of "study" or "event", which object to add the note to |
evNum |
If |
label |
(optional) a short header or label for the note. Recommended to set this as a sumamry of the more detailed note |
note |
the full note message |
For addNote
, the same data as x
, with notes added.
For getNotes
, a list of all notes present in x
Taiki Sakai taiki.sakai@noaa.gov
data(exStudy)
exStudy <- addNote(exStudy, to='study', label='Note1',
note='My first note for this study')
exStudy <- addNote(exStudy, to='event', evNum=1:2, label='Note2',
note='A note for the first two events')
exStudy <- addNote(exStudy[[1]], to='event', label='Note3',
note='A second note for the first event')
exStudy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.