replacewhere: Replace values in selected columns where a condition holds

View source: R/primitives.R

replacewhereR Documentation

Replace values in selected columns where a condition holds

Description

Replace values in selected columns where a condition holds

Usage

replacewhere(data, condition, cols, value)

Arguments

data

A data.frame.

condition

A logical expression evaluated in the context of data.

cols

Character vector of column names.

value

Value to test, assign, or match against.

Value

data with matching values replaced.


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