Learn R Programming

fitPoly (version 4.0.0)

leftstr: Get substrings from the lefthand side

Description

Get substrings from the lefthand side

Usage

leftstr(x, n)

Value

character vector with leftside substrings of x

Arguments

x

a character vector (or something having an as.character method)

n

a single number: if n>=0, the leftmost n characters of each element of x are selected, if n<0 the (-n) rightmost characters are omitted