Learn R Programming

clinpubr (version 1.1.1)

add_lists: Adding lists element-wise

Description

Combine lists by adding element-wise.

Usage

add_lists(l1, l2)

Value

A list.

Arguments

l1, l2

A pair of lists.

Examples

Run this code
l1 <- list(a = 1, b = 2)
l2 <- list(a = 3, b = 4, c = 5)
add_lists(l1, l2)

Run the code above in your browser using DataLab