Learn R Programming

pcutils (version 0.2.8)

gsub.data.frame: Gsub applied on a data.frame

Description

Gsub applied on a data.frame

Usage

gsub.data.frame(pattern, replacement, x, ...)

Value

a data.frame

Arguments

pattern

search pattern

replacement

a replacement for matched pattern

x

your data.frame

...

additional arguments for gerpl()

Examples

Run this code
matrix(letters[1:6], 2, 3) |> as.data.frame() -> a
gsub.data.frame("c", "a", a)

Run the code above in your browser using DataLab