df_exclude_col | R Documentation |
Remove columns from data.frame
df_exclude_col(df, col, on_missing_col = "warn")
df |
data.frame, input data.frame |
col |
character vector, column name(s) to be deleted |
on_missing_col |
string, behavior for missing column(s): "warn" - log warning, "skip" - skip missing column(s), "stop" - throw error |
Modified input data.frame
df <- data.frame(a = 1:3, b = 1:3, c = 1:3)
df_exclude_col(df, "b")
df_exclude_col(df, c("a", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.