cube: Cube a vector

Description Usage Arguments Details Value Examples

View source: R/cube.R

Description

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

Usage

1

Arguments

x

The vector to be cubed.

na.omit

Whether or not to remove NAs, the default is FALSE.

Details

This function isn't complicated.

It is built for learning purpose.

Value

A vector that is the cube of x.

Examples

1
2
cube(1:10)
cube(-5)

hannahdxz/powers documentation built on May 29, 2019, 12:04 p.m.