Data cube creation
dcc6(
.data,
.variables,
.funs_list = list(n = ~dplyr::n()),
.total = "Totale",
order_type = extract_unique4,
.all = TRUE
)dcc6_fixed(
.data,
.variables,
.funs_list = list(n = ~dplyr::n()),
.total = "Totale",
order_type = extract_unique5,
.all = TRUE,
fixed_variable = NULL
)
data frame to be processed.
variables to split data frame by, as a character vector
(c("var1", "var2")
).
a list of function calls in the form of right-hand formula.
character string with the name to give to the subset of data
that includes all the observations of a variable (default: "Totale"
).
a function like extract_unique
or
extract_unique2
.
logical, indicating if functions have to be evaluated on the complete dataset.
name of the variable for which you do not want to estimate the total
# NOT RUN {
dcc6(invented_wages,
.variables = c("gender", "sector"),
.funs_list = list(n = ~dplyr::n()),
.all = TRUE)
dcc6(invented_wages,
.variables = c("gender", "sector"),
.funs_list = list(n = ~dplyr::n()),
.all = FALSE)
# }
Run the code above in your browser using DataLab