cube: Cube a vector

Description Usage Arguments Details Value Examples

View source: R/cube.R

Description

That's it – this function just takes a vector to the power of 3.

Usage

1
cube(x)

Arguments

x

The vector to be cubed.

Details

This function isn't complicated.

And it almost certainly doesn't need two paragraphs in the "Details" section!

Here are some reasons why putting a list in this section is excessive:

Value

A vector that is the cube of x.

Examples

1
2
cube(2)
cube(-5)

KateJohnson/powers documentation built on May 29, 2019, 12:03 p.m.