target | R 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.
target(df, target_cols)
df, |
data frame |
target, |
target columns |
data frame modified around the target columns as specified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.