Learn R Programming

lares (version 4.4)

left: Left: First n characters

Description

This function lets the user extract the first n characters of a string or vector of strings.

Usage

left(string, n)

Arguments

string

String or Vector

n

Integer. How many characters from left to right?