add: The sum !

Description Usage Arguments Details Value See Also Examples

View source: R/Funs.R

Description

This wonderful function will calculate for you the sum of any two numerical vectors.

Usage

1
add(x, y, plot = FALSE)

Arguments

x, y

Numeric vectors.

plot

Logical telling whether to plot ggplot2 graph or not.

Details

The calculation of x+y is obvious. No details are needed!

Value

Numeric vector of x, y, and x+y.

See Also

For more details see https://en.wikipedia.org/wiki/Summation.

Examples

1
2
3
4
5
# sum of two numbers
add(1, 1)

# sum of two vectors
add(c(1, 2), 1:8)

phauchamps/my1Pkg documentation built on May 3, 2020, 1:39 p.m.