This function returns the nth last characters of a string
Examples
vars <- c("Gender.x", "Gender.y")
vars |> substr_right(1)
#> [1] "x" "y"
This function returns the nth last characters of a string
vars <- c("Gender.x", "Gender.y")
vars |> substr_right(1)
#> [1] "x" "y"