cube: Cube a vector

Description Usage Arguments Details Value Examples

Description

That's it – this function just cubes a vector.

Usage

1
cube(x, genplot = FALSE)

Arguments

x

The vector to be cubed.

genplot

Generates and prints a plot of x FALSE by default.

Details

Returns the cube of a number vector. AKA n^3, AKA (n * n * n)

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(1:10)
cube(-5)

farihakhan/powersPackage documentation built on May 12, 2019, 8:45 a.m.