mat_cross_helper: Crossing with helpers

Description Usage Arguments Examples

View source: R/cross_helper.R

Description

Crossing with helpers

Usage

1
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

1
2
3
4
5
6
7
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 Aug. 10, 2021, 11:01 a.m.