computeReplace: Replace matched pattern in a string

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeStrings.R

Description

Helper Function for xpssCompute. R Implementation of the SPSS REPLACE Function.

Usage

1
computeReplace (x,pattern=NULL,match=NULL, count = NULL)

Arguments

x

input vector

pattern

pattern to look for

match

string tp replace with

count

number of occurencees of pattern to replace

Value

String. Returns a character vector

Author(s)

Bastian Wiessner

See Also

str_replace str_replace_all str_sub<-

Examples

1
xpssCompute(x="Makfts sftnsft", fun="computeReplace",pattern="ft",match="e")

translateSPSS2R documentation built on May 20, 2017, 2:11 a.m.

Search within the translateSPSS2R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.