rep {salad} | R Documentation |
Replicate elements of a dual vector
Description
A method extending 'rep' to dual objects
Usage
## S3 method for class 'dual'
rep(x, ...)
Arguments
x |
a dual vector |
... |
extra parameters (typically, 'times', 'length.out' or 'each') |
Value
A dual object.
Examples
x <- rep( dual(1:2), each = 4 )
x
d(x)
[Package salad version 1.0 Index]