list_push: Add elements to a list like array_push in PHP

View source: R/list_push.R

list_pushR Documentation

Add elements to a list like array_push in PHP

Description

Shorthand to add elements to a vector and save as the same name

Usage

list_push(., add)

Arguments

.

first list

add

list to add

Value

vector combining fist and second vector, but have name set to the first

Examples

num1 <- list(sample(330:400,10))
num2 <-list("rpkg.net")
list_push(num1, add= num2)

quickcode documentation built on April 11, 2025, 5:49 p.m.