hsAddMissingCols: Add missing Columns to a Data Frame

View source: R/column.R

hsAddMissingColsR Documentation

Add missing Columns to a Data Frame

Description

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


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.