Fetch a parameter from a parameter set.
Arguments
- x
The
ParameterSet
object to fetch from.- ...
One or more variables specified as:
a literal variable name
a positive integer, giving the position counting from the left
a negative integer, giving the position counting from the right. The default returns the last parameter. This argument is taken by expression and supports quasiquotation (you can unquote column names and column locations).
- output
A character defining the output type as follows:
"named" (default) returns the named value if the value is a single value, the value inside a named list otherwise
"value" returns only the value itself
"list" returns the value inside a named list
Examples
if (FALSE) { # \dontrun{
getDesignInverseNormal() |> fetch(kMax)
getDesignInverseNormal() |> fetch(kMax, output = "list")
} # }