expand_grid: Wrapper around expand.grid more suited to factorial...

Description Usage Arguments

View source: R/utilities.R

Description

Wrapper around expand.grid that returns a tbl_df instead of a data.frame, that allows grouping by all columns as an option, and that treats stringsAsFactors as FALSE by default.

Usage

1
expand_grid(..., stringsAsFactors = FALSE, group_by_all = FALSE)

Arguments

...

Options passed on to expand.grid

stringsAsFactors

Whether to treat strings as factors, by default off (thankfully)

group_by_all

whether to group


dgrtwo/drlib documentation built on Oct. 11, 2019, 6:42 a.m.