The append_to_list()
function appends an object to the specified list in Global Environment (default).
This function is pipe-optimised, and allows the option of specifying a name for the new object in the list.
append_to_list(x, list_x, name = "", enviro = .GlobalEnv)
An object to append to list, e.g. vector, data frame.
Target list to append object to.
Specify a character string for the name of the list. Defaults to blank
Specifies the environment
a_list <- list(NULL)
append_to_list(iris,a_list,"iris")