addMissingSpecColumns.Rd
Add missing columns for specification
addMissingSpecColumns(df, names)
df | data.frame data frame with data for the specification |
---|---|
names | names of columns to include in new data.frame |
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.