renamewith: Rename columns with a function

View source: R/primitives.R

renamewithR Documentation

Rename columns with a function

Description

Rename columns with a function

Usage

renamewith(data, cols, fun)

Arguments

data

A data.frame.

cols

Character vector of column names.

fun

Function applied to each element, column, or group.

Value

data with the selected columns renamed.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.