left: Truncate Characters from the Left

View source: R/left.R

leftR Documentation

Truncate Characters from the Left

Description

Truncate Characters from the Left

Usage

left(x, n)

Arguments

x

can be number, strings, verctors, dataframe or matrix.

n

length

Value

substring

Examples

left("abcd",3)
left(c("abc","gjh"),2)
df = data.frame(
  a = c(123,234,456),
  b = c("abc","bcd","hjg")
)
left(df,2)

do documentation built on Sept. 12, 2024, 6:27 a.m.