rm_prefix: Remove a prefix in a dataframe column

View source: R/rm_prefix.R

rm_prefixR Documentation

Remove a prefix in a dataframe column

Description

This function used to Remove a prefix in a dataframe column or columns

Usage

rm_prefix(prefix, data, column)

Arguments

prefix

specify a prefix for the wanted columns in data.

data

specify data frame

column

specify a dataframe containing variables

Value

returns a dataframe with prefix removed

Examples

df <- add_prefix("G_", head(iris, 2))
rm_prefix("G_", df)

IbrahimHE/wrangler documentation built on March 27, 2022, 4:23 p.m.