| dual_vector-access | R Documentation |
Indexing and length for dual_vector
## S4 method for signature 'dual_vector,numeric'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'dual_vector'
length(x)
x |
A |
i |
Numeric index. |
j, drop, ... |
Ignored (present for generic compatibility). |
A single dual for scalar index; a dual_vector for
vector index; an integer for length.
dv <- dual_vector(dual(10, 1), dual(20, 0), dual(30, 0))
value(dv[1])
length(dv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.