Learn R Programming

contextual (version 0.9.8.4)

sum_of: Sum of list

Description

Returns the sum of the values of the elements of a list x.

Usage

sum_of(x)

Arguments

x

List

Details

If there is a tie, and equal_is_random is TRUE, the index of one of the tied maxima is returned at random. Otherwise, the value with the lowest index is returned.

Examples

Run this code
# NOT RUN {
theta = list(par_one = list(1,2,3), par_two = list(2,3,4))
sum_of(theta$par_one)

# }

Run the code above in your browser using DataLab