square: Square a number

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Ever use the command "square(x)" only to find that R does not have a "square" function, despite the fact that it has a "sqrt" function? I do this all the time out of habit because I frequently use that when coding in Stan. This function exists to save me (or you) frustration by not incurring annoying error messages if using square(x) out of habit.

Usage

1
square(x)

Arguments

x

a number

Value

a number

Examples

1
square(2)

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.