Check out example codes for "r append to list". It will help you in understanding the concepts better.

Code Example 1

# append item to list in r
append(first_vector, second_vector)

Code Example 2

# Basic syntax:
list(11, 23, 42) # List of numerics
list(TRUE, FALSE, TRUE) # List of booleans/logicals
list("aa", "bb", "cc") # List of strings

# Note, in R, list and vectors (aka atomic vectors) are both 
#	one-dimensional objects, but lists can contain mixed type data 
#	whereas vectors can only contain one type of data
# Note, to make a vector, use: c(11, 23, 42)

Learn ReactJs, React Native from akashmittal.com