LEFT: Return Specified Number of Characters from Left in...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/LEFT.R

Description

Returns the number of characters from left in a string/character vector.

Usage

1

Arguments

x

Character vector or string you would like to slice.

length

Number of characters from left you would like returned.

Value

Returns the number of characters from left in a string/character vector.

Author(s)

Nick Bultman, njbultman74@gmail.com, January 2021

See Also

substr

Examples

1
2
LEFT("hello world!", 5)
LEFT(c("hi", "hey", "hello"), 2)

njbultman/xlsxFunctions documentation built on March 19, 2021, 6:54 p.m.