Gsub applied on a data.frame

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

Arguments

pattern

search pattern

replacement

a replacement for matched pattern

x

your data.frame

...

additional arguments for gerpl()

Value

a data.frame

Examples

matrix(letters[1:6], 2, 3) |> as.data.frame() -> a
gsub.data.frame("c", "a", a)
#>   V1 V2 V3
#> 1  a  a  e
#> 2  b  d  f