arguSelect {BIOdry} | R Documentation |
Argument selection
Description
Arguments of specific functions are selected from arbitrary numbers and varieties of arguments.
Usage
arguSelect(rd = NULL, fun = c("mapply", "ringApply"), ...)
Arguments
rd |
|
fun |
|
... |
Further arguments not necessarily contained in the processed function(s). |
Details
Closures with ellipsis terms use this
function to extract and pass arguments to
other functions. Arguments in MoreArgs
lists are also extracted and stored again as
MoreArgs
lists.
Value
list
of selected arguments.
Author(s)
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
Examples
##Multilevel ecological data series of tree-ring widths:
data(Prings05,envir = environment())
## Radial increments measured on 2003:
data(Pradii03,envir = environment())
## Selection of arguments in some functions:
ar1 <- arguSelect(fun = c('amod'),
only.dup = TRUE,
mp = c(0.5,1),
rf.t = 2003)
str(ar1)
ar2 <- arguSelect(fn = 'amod',
only.dup = TRUE,
mp = c(0.5,1),
rf.t = 2003)
str(ar2)
ar3 <- arguSelect(rd = Prings05,
fn = 'amod',
only.dup = TRUE,
mp = c(0.5,1),
rf.t = 2003)
str(ar3)
ar4 <- arguSelect(rd = Prings05,
fun = 'scacum',
sc.c = Pradii03,
MoreArgs = list(only.dup = TRUE,
mp = c(0.5,1),
rf.t = 2003))
str(ar4)
ar5 <- arguSelect(rd = Prings05,
fun = 'scacum',
ref = Pradii03,
rf.t = rep(2003:2011),
MoreArgs = list(only.dup = TRUE,
mp = c(0.5,1)))
str(ar5)
[Package BIOdry version 0.9 Index]