You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When grouping a dataframe by a column that contains white spaces, mutate and summarise will error saying that the grouping column can't be found: Error in eval(bysub, x, parent.frame()) : object '`ah bh`' not found"
The problem seems to be on the code translation, since it gets "double" backticks:
copy(`_DT17`)[, `:=`(sum_col = sum(ch)), by = .(`\`ah bh\``)]
When grouping a dataframe by a column that contains white spaces,
mutate
andsummarise
will error saying that the grouping column can't be found:Error in eval(bysub, x, parent.frame()) : object '`ah bh`' not found"
The problem seems to be on the code translation, since it gets "double" backticks:
copy(`_DT17`)[, `:=`(sum_col = sum(ch)), by = .(`\`ah bh\``)]
Reprex below:
The text was updated successfully, but these errors were encountered: