append_list: Append R object to a list.

Description Usage Arguments Value See Also Examples

View source: R/append_list.R

Description

Append R object to a list.

Usage

1
append_list(l, obj, obj.name, overwrite = TRUE)

Arguments

l

A R-list.

obj

R object to be appended to the list.

obj.name

R object name to be used to the list.

overwrite

logical value indicates whether overwrite object with the same name.

Value

l_new

A new list with additions.

See Also

hcl

Examples

1
2
3
l <- list(c("a", "b"))
x <- list(c(1:5))
append_list(l, x, "X")

kang-yu/lazyu documentation built on May 30, 2019, 11:42 a.m.