Create a vector with case insensitive name matching.
insensitive(x)
x
x <- c("abc" = 1, "def" = 2) x["ABC"] y <- insensitive(x) y["ABC"] y[["ABC"]]
Useful links