chars
R/methods.R
sub-.chars.Rd
Extract or Replace Parts of a chars Object
# S3 method for class 'chars' x[...]
a chars object.
further arguments passed to or from other methods.
the extracted parts of a chars object, or a chars object with replacements performed.
s <- chars("censor") s[2:5] #> [1] "enso" s[2:5] <- "X" s #> [1] "cXXXXr"