Skip to contents

Function that removes column(s) from data frame

Usage

remove_cols_from_df(df, cnames = NULL)

Arguments

df

data.frame with data

cnames

character vector with column names

Value

df data.frame with columns removed (if present originally)