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

Description Usage Examples

View source: R/stringtools.R

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

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

Examples

1
2
3
4
5
6
7
8
## 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 March 20, 2018, 3:23 p.m.