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

this is a plot.

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)

Trudel02/my-first-package documentation built on July 26, 2020, 12:38 a.m.