df.col.grid: Expand grid with values from data frame columns

View source: R/utilities.R

df.col.gridR Documentation

Expand grid with values from data frame columns

Description

This is similar to expand.grid but uses the existing values in a data frame, on the variables that you name. This would be most useful as a step in preparing data for some other analysis.

Usage

df.col.grid(df, columns)

Arguments

df

A data frame.

columns

A list of column names in the data frame.

Details

Not yet.

Value

A data frame with all combinations of values existing in the data frame on the specified columns.

Examples

#

thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.