fill_in: Expands a data.frame to include all unique combinations of...

Description Usage Arguments

View source: R/fill_in.R

Description

Expands a data.frame to include all unique combinations of variables and fills in 0's (or other) for missing values

Usage

1
fill_in(dat, value_name = NULL, value_index = NULL, fill_value = 0)

Arguments

dat

data.frame to fill in

value_name

names of columns to be filled in (specify this or value_index)

value_index

indices of columns to be filled in (specify this or value_name)

fill_value

how to fill in holes after expansion. (Defaults to 0.)


pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.