hsAddMissingCols | R Documentation |
Adds missing columns to the given data frame so that the resulting data frame contains all columns given in the vector colNames. Added columns are filled with NA values.
hsAddMissingCols(dataFrame, colNames, fill.value = NA)
dataFrame |
data frame to which column names are to be appended |
colNames |
vector containing names of columns that shall be contained in dataFrame |
fill.value |
value to be inserted into newly created columns. Default:
|
data frame with columns as listed in colNames
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.