SyntaxFix
Write A Post
Hire A Developer
Questions
Another option is the janitor package:
janitor
df <- remove_empty_cols(df)
https://github.com/sfirke/janitor