pivot_frac.Rd
Title
pivot_frac( data, rows = NULL, cols = NULL, value = NULL, within = NULL, pivot = T, percent = T, round = F )
data | A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
---|---|
rows | a character vector of items |
cols | a character vector of items |
pivot | logical: should wide table be returned - col categories as columns (TRUE), or left long and tidy (FALSE)? |
tidy_titanic %>% pivot_frac(rows = survived, cols = sex, within = sex)#> Error in dplyr::summarize(., value = fun(value)): Problem while computing `value = fun(value)`.#> Error in dplyr::summarize(., value = fun(value)): Problem while computing `value = fun(value)`.