left: Extract the left or right substrings in a character vector.

Description Usage Arguments Value Author(s) Examples

View source: R/left.R

Description

Extract the left or right substrings in a character vector.

Usage

1
2
left(string, n)
right(string, n)

Arguments

string

A character vector.

n

How many characters.

Value

A character vector.

Author(s)

Jian Li <[email protected]>

Examples

1
left("hello", 3)

tmcn documentation built on March 18, 2018, 1:44 p.m.