Description Usage Arguments Details Value See Also Examples
This function accepts inputs of numerical, logical, or character data. It then squares the data. There is also an option to plot the resulting output.
1 |
x |
The vector to be squared. |
plot_it |
A logical switch. If |
returnVal |
A logical switch. If |
returnPlot |
A logical switch. If |
The function output depends on what inputs are used. In the case of numeric or logical data, the output will simply be the square of the input.
In the case of characters, the output will be the input character but with each component of the vector repeated twice. For character inputs, the plot_it switch does not have any effect.
By selecting returnPlot = TRUE
then the output will contain a plot object. In the case of character vectors, no plot is generated and the plot object is empty.
A vector that is the square of x
, this output can be supressed with returnVal
. Option to also return a plot object with returnPlot
.
pwr
, cube
, reciprocal
, tenvec
, negtenvec
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.