Skip to contents

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.

Usage

hsAddMissingCols(dataFrame, colNames, fill.value = NA)

Arguments

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: NA

Value

data frame with columns as listed in colNames