vector3_math | R Documentation |
Some summary and cumulant functions can apply to vectors as well. In particular, 'mean', 'sum', and 'cumsum' have meanings when applied to vector3s.
## S3 method for class 'dddr_vector3' vec_math(.fn, .x, ...)
.fn |
Mathematical function to apply |
.x |
Argument to the function |
... |
Unused; reserved for extensibility |
mean(vector3(x = 1:4, y = 2:5, z = 3:6)) sum(vector3(x = 1:4, y = 2:5, z = 3:6)) cumsum(vector3(x = 1:4, y = 2:5, z = 3:6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.