right: Truncate Characters from the Right

View source: R/right.R

rightR Documentation

Description

Truncate Characters from the Right

Usage

right(x, n)

Arguments

x

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

n

length

Value

substring

Examples

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 Sept. 12, 2024, 6:27 a.m.