A function that may be called by lapply() to assign all of the variables in the given environment to slots within a list.

assign_values(X, function_env, return_list)

Arguments

X
  • the name of the variable in function_env to assign to the list slot named X

function_env
  • the environment in which you want the function to search for the variable named X

return_list
  • the list item you want to add the value of X to in the slot named X

See also