replaces: Replace corresponding elements

Description Usage Arguments Value Examples

View source: R/replaces.R

Description

Replace corresponding elements

Usage

1
replaces(x, from, to, last = FALSE, evaluate = TRUE)

Arguments

x

vector

from

the replaced vector

to

the replacing vector

last

the last value

evaluate

if TRUE, the replaced x will be returned, else, the call sentence before evaluation

Value

replaced x

Examples

1
replaces(1:10, 1:3, 3:5)

jundoll/jmisc documentation built on May 20, 2019, 4:24 a.m.