I have a list of column aliases I am creating based on a dataframe.
column_aliases <- c("colA" = "Column A", "colB" = "Column B", "colC" = "Column C")
I know that the names()
function can be used to access "colA"
, "colB"
, and "colC"
; however, is there a good function to access "Column A"
, "Column B"
, and "Column C"
? I am having trouble finding one.
Thank you!
After reading your response to Martin Gal's comment maybe you mean something like unname(column_aliases)
?
unname(column_aliases)
[1] "Column A" "Column B" "Column C"