SumBoth: SumBoth

Description Usage Arguments Value Author(s) Examples

Description

A function that takes two real numbers and returns their summation.

Usage

1
SumBoth(num1, num2)

Arguments

num1

First number

num2

Second number

Value

The sum of num1 and num2

This function takes two real numbers and returns their summation

Author(s)

Jaime Mosquera GutiƩrrez, jmosquerag@unal.edu.co

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#' # Sum two known numbers
x <- 1
y <- 2
# x + y = 1 + 2 = 3
z <- SumBoth(x, y)
z

# What happens if input is not from numeric class
x <- "a"
y <- 2
SumBoth(x, y)

Jaimemosg/pruebasTravis documentation built on May 12, 2019, 10:07 a.m.