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