square: Square a vector

Description Usage Arguments Details Value Examples

View source: R/square.R

Description

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

Usage

1
square(x = 1)

Arguments

x

The vector to be squared. Default value is 1.

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

zxkathy/powers documentation built on Dec. 7, 2017, 8:29 p.m.