convenience.RdSquare, cube, or take the reciprocal/inverse of a vector OR a list of numbers.
cube(x) reciprocal(x) square(x)
| x | Vector or list of numbers. |
|---|
A vector (atomic, double) that is the:
square (for square)
cube (for cube)
reciprocal/inverse (for reciprocal)
of x.
cube(tenvec)#> [1] 1 8 27 64 125 216 343 512 729 1000square(-5)#> [1] 25reciprocal(2)#> [1] 0.5#> [1] 1 16 25