SyntaxFix
Write A Post
Hire A Developer
Questions
For some reason only
df[, (names(df) %in% c("A","B","E"))]
worked for me. All of the above syntaxes yielded "undefined columns selected".