strHead | R Documentation |
Picks the substring starting from the first character
strHead(string, n)
string |
string |
n |
(integer) Number of characters |
'n' can be in the interval [-len + 1, len] (both ends inclusive)
A string
tidyrules:::strHead(c("string", "string2"), 2)
tidyrules:::strHead(c("string", "string2"), -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.