Skip to contents

This function provides an example with Roxygen2 markups. We can internally reference the sister function ff_rtest_mul_basic(). Display equation is shown with $$x + y$$

Usage

ff_rtest_add_basic(ar_fl_x, ar_fl_y)

Arguments

ar_fl_x

Scalar or vector of numbers

ar_fl_y

Scalar or vector of numbers

Value

A named list with sum related values

  • ar_fl_sum - The sum of ar_fl_x and ar_fl_y, inline equation \(x + y\).

  • ar_fl_x - x value input

  • ar_fl_y - y value input

See also

ff_rtest_mul_basic() for multiplication.

Author

Fan Wang, http://fanwangecon.github.io

Examples

ff_rtest_add_basic(1, 1)
#> $ar_fl_sum
#> [1] 2
#> 
#> $ar_fl_x
#> [1] 1
#> 
#> $ar_fl_y
#> [1] 1
#> 
ff_rtest_add_basic(c(10, 10), c(1, 3))
#> $ar_fl_sum
#> [1] 11 13
#> 
#> $ar_fl_x
#> [1] 10 10
#> 
#> $ar_fl_y
#> [1] 1 3
#>