Add missing columns for specification

addMissingSpecColumns(df, names)

Arguments

df

data.frame data frame with data for the specification

names

names of columns to include in new data.frame

Details

Takes in a data.frame and a set of column names, returns a data.frame with the specified columns, assigning 0 to the value of missing columns for all rows.