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
Describe the bug
When scaling data where the only ID column is the column you want to scale over, the function errors. I believe there is some internal assumption that there will be more ID columns and scale() is trying to do some grouping by those non-existent columns.
Scaling id
Scaling 1 of 1: a
Error in merge.data.table(unique(children_dt[, .SD, .SDcols = by_id_cols]), :
A non-empty vector of column names for `by` is required.
In addition: Warning message:
In merge.data.table(unique(children_dt[, .SD, .SDcols = by_id_cols]), :
You are trying to join data.tables where 'x' argument is 0 columns data.table.
Expected behavior
If the scaling column is the only ID column, no internal grouping should be applied.
Desktop (please complete the following information):
OS: Linux
R: 4.1.3
The text was updated successfully, but these errors were encountered:
Describe the bug
When scaling data where the only ID column is the column you want to scale over, the function errors. I believe there is some internal assumption that there will be more ID columns and
scale()
is trying to do some grouping by those non-existent columns.To Reproduce
This produces the error and warning:
Expected behavior
If the scaling column is the only ID column, no internal grouping should be applied.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: