Learn R Programming

jwutil (version 1.2.3)

fillMissingCombs: fill out missing combinations of factors with NA

Description

fill out missing combinations of factors with NA

Usage

fillMissingCombs(df)

Arguments

df

data frame

Details

Adapated from http://www.cookbook-r.com/Manipulating_data/Summarizing_data/#using-aggregate