mat_cross_helper: Crossing with helpers

View source: R/cross_helper.R

mat_cross_helperR Documentation

Crossing with helpers

Description

Crossing with helpers

Usage

mat_cross_helper(df, args, wide = TRUE, remove_NA = TRUE, replace_all = "all")

Arguments

df

data

args

a list, names, with values. Special are .each, and .all

wide

to wide?

remove_NA

Are NAs in unequal data lenghts to be removed?

replace_all

Value for the .all column

Examples

mat_cross_helper(df=warpbreaks, args =list(wool=c("A"),
                           tension = c("L", "H")), wide=FALSE)
mat_cross_helper(warpbreaks, list(wool=c("A"),
                           tension = c(".each", ".all")), wide=FALSE)
mat_cross_helper(df=warpbreaks, args = list(wool=c("A"),
                           tension = c(".each", ".all")),
                           wide=TRUE)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.