strhead: Get the first n letters

Description Usage Arguments Value

View source: R/strexts.R

Description

if n>0, return the first n letters of x if n<0, return all but the last abs(n) letters of x

Usage

1
strhead(s, n = 1)

Arguments

s

character or character vector

n

numeric, default 1

Value

character


doomhammerhell/test-datamart documentation built on Dec. 20, 2021, 1:09 a.m.