Let's say I have a vector a = c("Label 1", "Label 2") and a vector b = c(1, 2). I was wondering whether there is an elegant way to create a vector c = c("Label 1" = 1, "Label 2" = 2) from these two. Setting c <- c(a = b) unfortunately doesn't do the job - but is there any way to do this with a single line of code?