Skip to contents

Left Part of a String

Usage

left(x, n)

Arguments

x

vector of character

n

number of characters to be kept from the beginning of each character string within x

Value

vector of character

Examples

left("Good Morning", 4)
#> [1] "Good"