rename_sub: Rename tables with a regular expression

Description Usage Arguments

View source: R/rename.R

Description

Use a regular expression to rename tables. The function rename_replace applies str_replace to the names of the table, while rename_replace_all applies str_replace_all.

Usage

1
rename_sub(.data, pattern, replacement, all = TRUE)

Arguments

.data

A data frame

pattern, replacement

Pattern and replacement regular expressions. See str_replace.

all

If TRUE, the replace all patterns, else replace only the the first pattern.


jrnold/rubbish documentation built on May 20, 2019, 2:05 a.m.