Skip to contents

Equivalent of left in SQL; takes the specified number of characters from the left hand side of a string.

Usage

left(x, n = 1)

Arguments

x

a string or vector of strings

n

integer. Number of characters you want to extract from the string.