View source: R/delete_columns_data.frame.R
delete_columns_data.frame | R Documentation |
data.frame
columnsThis function deletes columns of a data.frame
by name.
delete_columns_data.frame(df, column_names)
df |
[ |
column_names |
[ |
The input df
without the columns defined by column_names
.
Other data.frame helpers:
group_data.frame()
,
round_data.frame()
df <- data.frame("label" = c("A", "B"), "number" = 1:10)
delete_columns_data.frame(df = df, column_names = "label")
delete_columns_data.frame(df = df, column_names = "number")
delete_columns_data.frame(df = df, column_names = c("label", "number"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.