str.remove.ignore: ignore is a logical vector or matrix stating which char...

View source: R/stringtools.R

str.remove.ignoreR Documentation

ignore is a logical vector or matrix stating which char positions shall be ignored the function removes the substrings for which ignore=TRUE

Description

ignore is a logical vector or matrix stating which char positions shall be ignored the function removes the substrings for which ignore=TRUE

Usage

## S3 method for class 'remove.ignore'
str(str, ignore)

Examples

## Not run: 
  str =c("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ","1234567890")
  ignore = rep(FALSE,max(nchar(str)))
  ignore[c(4:5,8:20)] = TRUE
  str
  str.remove.ignore(str,ignore)

## End(Not run)

skranz/stringtools documentation built on May 11, 2022, 4:48 a.m.