powered by
fill out missing combinations of factors with NA
fillMissingCombs(df)
data frame
Adapated from http://www.cookbook-r.com/Manipulating_data/Summarizing_data/#using-aggregate