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
Thanks for filing this! I had to re-acquaint myself with this. I agree that it would be better if this was a more flexible function in terms of column specification. Right now ?adorn_totals notes:
This function excludes the first column of the input data.frame, assuming it's a descriptive variable not to be summed.
And I think it has to work that way currently because:
If adorn_totals("col") summed that first numeric column, it would be wrong. So I can't just switch it to sum all numeric columns.
A longer-term solution would be to allow for column selection like dplyr::select(), then you could say whether to sum that first numeric column. This issue is discussed in #219 so I'll close this to keep discussion in one place.
When adorning columns with a total (
adorn_totals("col")
), the first column is always skipped, even if it is numeric.Output:
Expected output:
This was reported as an old issue that was fixed, but here it appears to still be broken. (#57)
The text was updated successfully, but these errors were encountered: