leftright: Left Right

Description Usage Arguments Value Examples

Description

R functions mirroring Excel's left() and right() functions.

Usage

1
2
3
left(string, num_chars)

right(string, num_chars)

Arguments

string

Character string to pull from.

num_chars

Number of characters to pull.

Value

Adjusted character string.

Examples

1
2
left("leftright", 4)
right("leftright", 5)

jimbrig2011/arsenal documentation built on July 12, 2019, 12:25 p.m.