delete_data_frame_columns {oeli}R Documentation

Deleting data.frame columns

Description

This function deletes columns of a data.frame by name.

Usage

delete_data_frame_columns(df, column_names)

Arguments

df

A data.frame.

column_names

A character (vector), the name(s) of a column of df to group by.

Value

The input df without the columns defined by column_names.

Examples

df <- data.frame("label" = c("A", "B"), "number" = 1:10)
delete_data_frame_columns(df = df, column_names = "label")
delete_data_frame_columns(df = df, column_names = "number")
delete_data_frame_columns(df = df, column_names = c("label", "number"))


[Package oeli version 0.5.2 Index]