target: This function modifies the dataframe based on a set of target...

View source: R/target.R

targetR Documentation

This function modifies the dataframe based on a set of target columns. It will replace a column with NA if it is not present in the dataframe and only return those columns.

Description

This function modifies the dataframe based on a set of target columns. It will replace a column with NA if it is not present in the dataframe and only return those columns.

Usage

target(df, target_cols)

Arguments

df,

data frame

target,

target columns

Value

data frame modified around the target columns as specified


kingsuching/Frost2021Package documentation built on March 19, 2022, 11:51 p.m.