Learn R Programming

do (version 2.0.0.1)

Replace0: Replaced by Empty

Description

Replaced by Empty

Usage

Replace0(data, ...)

Value

replaced data

Arguments

data

can be number, strings, verctors, dataframe or matrix.

...

replaced stings

Examples

Run this code
Replace0(data = 232,2)
Replace0(data = c(232,'a4b'),2,'.*4')

df = data.frame(
  a = c(232, 452),
  b = c("nba", "cba")
)
Replace0(data = df, 2,'a')

Run the code above in your browser using DataLab