head.chars: Return the First Parts of a 'chars' Object

View source: R/methods.R

head.charsR Documentation

Return the First Parts of a chars Object

Description

Return the First Parts of a chars Object

Usage

## S3 method for class 'chars'
head(x, ...)

Arguments

x

a chars object.

...

further arguments passed to or from other methods.

Value

the first (n) elements of a chars object as a chars object.

Examples

head(chars("abcdefhgi"))

head(chars("javascript"), 4)

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