square: Raise a vector to a power

Description Usage Arguments Details Value Examples

View source: R/square.R

Description

That's it – this function just computes a power of a vector.

Usage

1
2
3
square(x, plot_it = FALSE)

cube(x, plot_it = FALSE)

Arguments

x

The vector to be modified

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 rasied to a selected power x.

Examples

1
2
3
4
square(1:10)
square(-5)
cube(3)
cube(-9)

margotgunning/powers documentation built on May 29, 2019, 12:05 p.m.