Learn R Programming

PAMpal (version 1.4.4)

removeNote: removeNote

Description

Remove a note added with addNote

Usage

removeNote(x, index)

Value

For addNote, the same data as x, with notes added. For getNotes, a list of all notes present in x

Arguments

x

An AcousticStudy or AcousticEvent object

index

The index of the note to remove, order matches the output of getNotes

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

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
removeNote(exStudy, 1)
removeNote(exStudy, 2)
removeNote(exStudy, 3)

Run the code above in your browser using DataLab