left | R Documentation |
n
characters from the left of a string
left
uses a specific case of the substr
function to take only
the left most n
characters from the input string.Extract the n
characters from the left of a string
left
uses a specific case of the substr
function to take only
the left most n
characters from the input string.
left(x, n)
x |
a string |
n |
the number of characters from the left of the string to extract |
foo <- "foo" left(foo, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.