left | R Documentation |
Takes a string or numeric value and subsets out the left n characters.
A simple function that extracts the left number of specified characters from a string or numeric value.
The returned output will be same class as the input.
left(x, n)
x |
numeric value or string. |
n |
numeric. The number of characters to extract from the left side. |
Nicholas Carey - nicholascarey@gmail.com
right
left("some text", 4)
left(123456, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.