Learn R Programming

quickcode (version 1.0.6)

list_push: 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)

Value

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

Arguments

.

first list

add

list to add

Examples

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

Run the code above in your browser using DataLab