If you have stored variable names inside a character vector, this function gives you the inverse variable name vector.
Examples
# Example data frame
my_data <- dummy_data(1000)
# Get variable names
var_names <- c("year", "age", "sex")
other_names <- my_data |> inverse(var_names)
# Can also be used to just get all variable names
all_names <- my_data |> inverse(NULL)
all_names <- my_data |> inverse(character(0))