powered by
A minimal function which counts the number of observations by groups in a data frame
jointfun_(.data, .variables, ...)
data frame to be processed
variables to split data frame by, as a character vector (c("var1", "var2")).
c("var1", "var2")
additional function calls to be applied on the .data
a data frame, with a column for each cateogrical variable used, and a row for each combination of all the categorical variables' modalities.
# NOT RUN { data("invented_wages") tmp <- jointfun_(.data = invented_wages, .variables = c("gender", "sector")) tmp str(tmp) # }
Run the code above in your browser using DataLab