right: Truncate Characters from the Right

Description Usage Arguments Value Examples

View source: R/right.R

Description

Truncate Characters from the Right

Usage

1
right(x, n)

Arguments

x

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

n

length

Value

substring

Examples

1
2
3
4
5
6
7
right("abcd",3)
right(c("abc","gjh"),2)
df = data.frame(
  a = c(123,234,456),
  b = c("abc","bcd","hjg")
)
right(df,2)

do documentation built on Aug. 3, 2021, 5:06 p.m.