replace: Replace a value within a dataframe.

Description Usage Arguments

View source: R/replace.R

Description

Replace a value within a dataframe.

Usage

1
replace(df, col, expr, value)

Arguments

df

datafarme. The dataframe to replace within.

col

character. The name of the column to replace within.

expr

expression. An expression of the values in the column to replace.

value

object. The value positions where the expression is true become.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.