Learn R Programming

freegroup (version 1.0)

sum: Repeated summation by concatenation

Description

Concatenates its arguments to give a single free object

Usage

# S3 method for free
sum(..., na.rm = FALSE)

Arguments

Objects of class free, to be summed

na.rm

Boolean, indicating whether to ignore NA entries

Examples

Run this code
# NOT RUN {
x <- rfree(10,3)
sum(x)
abelianize(sum(x))

z <- alpha(26)
stopifnot(sum(x^z) == sum(x)^z)

# }

Run the code above in your browser using DataLab