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 <rweibo@sina.com>

Examples

1
left("hello", 3)

tmcn documentation built on Aug. 4, 2019, 3 p.m.

Related to left in tmcn...