add_to_list.RdA function that adds a new element to a pre-existing list. Allows greater compatibility with the pipe operator.
add_to_list(l, name, e)A list.
A character string, the name of the new element being added.
An R object, the new element to add to the list.
A list with an additional element e
with the specified name.