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, plot_it = FALSE, na.omit = FALSE)

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

bcahn7/STAT547M-hw09-An-Byeongchan documentation built on May 20, 2019, 5:46 p.m.