right {do} | R Documentation |
Truncate Characters from the Right
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)
[Package do version 2.0.0.0 Index]