Learn R Programming

charcuterie (version 0.0.4)

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

Description

Return the First Parts of a chars Object

Usage

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

Value

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

Arguments

x

a chars object.

...

further arguments passed to or from other methods.

Examples

Run this code
head(chars("abcdefhgi"))

head(chars("javascript"), 4)

Run the code above in your browser using DataLab