R construct a named list code example Example: R construct a named list my_list <- list(name1 = value1, name2 = value2)