View source: R/pos_and_ignore.R
cumsum.ignore | R Documentation |
Cummulative sum of number of characters that are ignored
## S3 method for class 'ignore' cumsum(ignore)
## Not run: str =c("Now that is a nice matrix. Not?","but short!") ignore = rep(FALSE,max(nchar(str))) ignore[c(4:5,8:20)] = TRUE ignore cumsum.ignore(ignore) ignore = matrix(ignore,nrow=NROW(str),ncol=length(ignore),byrow=TRUE) cumsum.ignore(ignore) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.