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
If you use the function count on a data frame that contains a column named 'freq', the method uses automatically the column 'freq' as weighting variable.
The behaviour occurs from lines 55 to 58 in count.r:
if (is.null(wt_var) && "freq" %in% names(df)) {
message("Using freq as weighting variable")
wt_var <- "freq"
}
Please add this very special behaviour to the method documentation, or remove it. I believe removing is the better solution as count(my_data, c('col_1'), wt_var = 'freq') does exactly the same thing...
Best,
Stefan
The text was updated successfully, but these errors were encountered:
If you use the function count on a data frame that contains a column named 'freq', the method uses automatically the column 'freq' as weighting variable.
The behaviour occurs from lines 55 to 58 in count.r:
if (is.null(wt_var) && "freq" %in% names(df)) {
message("Using freq as weighting variable")
wt_var <- "freq"
}
Please add this very special behaviour to the method documentation, or remove it. I believe removing is the better solution as count(my_data, c('col_1'), wt_var = 'freq') does exactly the same thing...
Best,
Stefan
The text was updated successfully, but these errors were encountered: