Skip to contents

This function fills missing columns in a data frame with NA values based on the specified column names.

Usage

fncols(data, cname)

Arguments

data

A data frame.

cname

A character vector specifying column names to be filled with NA values.

Value

A data frame with missing columns filled with NA values.