R/create_named_list.R
create_named_list.Rd
Input two vectors of the same length and return a named list.
create_named_list(x, y)
Vector containing character strings, e.g. "A"
Vector containing values for the list, e.g. 1, 3
create_named_list(c("Alice","Bob","Carol"),c(54,60,23)) #> Alice Bob Carol #> 54 60 23