removeFunction {PAMpal} | R Documentation |
Remove a Function from a PAMpalSettings Object
Description
Remove a function from the "function" slot in a PAMpalSettings object.
Usage
removeFunction(pps, index = NULL)
Arguments
pps |
a PAMpalSettings object to remove a function from |
index |
index indicating which function to move, counting from
|
Value
the same PAMpalSettings object as pps, with the function removed from the "functions" slot
Author(s)
Taiki Sakai taiki.sakai@noaa.gov
Examples
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)
[Package PAMpal version 1.2.1 Index]