left | R Documentation |
Truncate Characters from the Left
left(x, n)
x |
can be number, strings, verctors, dataframe or matrix. |
n |
length |
substring
left("abcd",3)
left(c("abc","gjh"),2)
df = data.frame(
a = c(123,234,456),
b = c("abc","bcd","hjg")
)
left(df,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.