When I use select(), I get this error:
"Error in 'select()':
Can't select columns that don't exist.
Columns '19', '19', '19', '19', '19' etc. don't exist.
Error during wrapup: 'length = 4' in coercion to 'logical(1)'
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
UPDATE:
The problem might be due to the fact that the column names use spaces, so I’ve been using workarounds to reference them. For example:
new_df <- old_df %>%
select(
old_df$'this column'
)
I have no idea what this could be referring to, since there are no numbers in any of my column names.
Any ideas? Thanks!
New contributor
Benjamin Hendricks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4