# NOT RUN {
# It takes its argument by expression:
select_var(letters, c)
# Negative numbers select from the end:
select_var(letters, -3)
# You can unquote variables:
var <- 10
select_var(letters, !! var)
# }
Run the code above in your browser using DataLab