search for: mass_pivot_wid

Displaying 1 result from an estimated 1 matches for "mass_pivot_wid".

Did you mean: mass_pivot_wider
2024 Dec 11
2
Cores hang when calling mcapply
...mple, one set has ~29k unique values and the other with ~15k unique values (no overlap across the two). Using a combination of custom functions: crewjanitormakeclean <- function(df,columns) { df <- df |> mutate(across(columns, ~make_clean_names(., allow_dupes = TRUE))) return(df) } mass_pivot_wider <- function(df,column,prefix) { df <- df |> distinct() |> mutate(n = 1) |> pivot_wider(names_from = glue("{column}"), values_from = n, names_prefix = prefix, values_fill = list(n = 0)) return(df) } sum_group_function <- function(df) { df <- df |> group_by(...