add_cols {dmtools}R Documentation

Add columns if columns don't exist

Description

Add columns if columns don't exist

Usage

add_cols(dset, ds_part, target_cols)

Arguments

dset

A data frame. The dataset.

ds_part

A character scalar. Prefix or postfix.

target_cols

A character vector with necessary columns.

Value

A data frame. The dataset.


[Package dmtools version 0.2.6 Index]