identity
Return Argument Unaltered
Description
Returns the single input argument without changing it.
Usage
identity(x)
dontCheck(x)
Arguments
Details
- identity - Use when a function is required as an argument but
you do not want the function to do anything.
- dontCheck - Identical to identity,
but with a name that makes its purpose clearer in code-checking frameworks.
Value
returns x unaltered.
Examples
sapply(X = list(1:2, c("iii","iv"), 5:6), FUN = identity, simplify=TRUE)