pow: Square a vector

Description Usage Arguments Details Value Examples

View source: R/pow.R

Description

That's it – this function raises a vector to a power.

Usage

1
pow(x, a = 2)

Arguments

x

The vector to be squared.

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 square of x.

Examples

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

rdwyer2/powers documentation built on May 29, 2019, 12:16 p.m.