To expand states with subcategories (age, vaccine status) x_y, with x varying faster

expand_names(x, y, sep = "_")

Arguments

x

character vector

y

character vector

sep

character separating the x and y components of the output names