Learn R Programming

PAMpal (version 1.4.4)

removeFunction: Remove a Function from a PAMpalSettings Object

Description

Remove a function from the "function" slot in a PAMpalSettings object.

Usage

removeFunction(pps, index = NULL)

Value

the same PAMpalSettings object as pps, with the function removed from the "functions" slot

Arguments

pps

a PAMpalSettings object to remove a function from

index

index indicating which function to move, counting from ClickDetector functions first, then WhistlesMoans functions, then Cepstrum functions. This is the same order functions appear in when examining the pps object. For example, if there are two Click functions and one Whistle function, the Whistle function would have an index of 3. If missing, user can select from a list. This can also be a vector to remove multiple functions at once.

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

exPps <- new('PAMpalSettings')
exPps <- addFunction(exPps, roccaWhistleCalcs, module='WhistlesMoans')
exPps <- addFunction(exPps, standardCepstrumCalcs, module = 'Cepstrum')
removeFunction(exPps, 1)
removeFunction(exPps, 1:2)
# normally best to use interactively instead of specifying index
if(interactive()) removeFunction(exPps)

Run the code above in your browser using DataLab