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
It would be nice to make this as flexible as dplyr verbs. These functions are essentially just a group_by() + summarize() operation, so perhaps they should be consolidated & only collapse_col() kept.
The could be done by removing the default method parameter and requiring the use of across() to handle the situation where multiple columns will be 'collapsed'. The biggest change would be the need internally to identify columns specified in across() so that any columns not listed could be added to the group_by() call. Changes to single columns as permitted by collapse_col_flex() would be easy to identify as they'd be named arguments in ....
Consider allowing user-defined functions to be used as methods. This would probably need to have a well designed error condition to handle cases where user-defined functions return more than one result per row.
ignore_na
parameterna.rm
parameter --> implement itfirst
andlast
na.omit
first
orlast
ignore_na
in_flex()
function to account for differential handling of methods{{ .cols }}
withdplyr::everything()
insummarize
c(-x, -y)
--> I want to collapse all columns exceptx
&y
The text was updated successfully, but these errors were encountered: