sub-.chars: Extract or Replace Parts of a 'chars' Object

[.charsR Documentation

Extract or Replace Parts of a chars Object

Description

Extract or Replace Parts of a chars Object

Usage

## S3 method for class 'chars'
x[...]

Arguments

x

a chars object.

...

further arguments passed to or from other methods.

Value

the extracted parts of a chars object, or a chars object with replacements performed.

Examples

s <- chars("censor")
s[2:5]
s[2:5] <- "X"
s

charcuterie documentation built on April 3, 2025, 8:53 p.m.