chars
R/methods.R
head.chars.Rd
Return the First Parts of a chars Object
# S3 method for class 'chars' head(x, ...)
a chars object.
further arguments passed to or from other methods.
the first (n) elements of a chars object as a chars object.
n
head(chars("abcdefhgi")) #> [1] "abcdef" head(chars("javascript"), 4) #> [1] "java"