powered by
Picks the substring starting from the first character
strHead(string, n)
A string
string
(integer) Number of characters
'n' can be in the interval [-len + 1, len] (both ends inclusive)
# \donttest{ tidyrules:::strHead(c("string", "string2"), 2) tidyrules:::strHead(c("string", "string2"), -1) # }
Run the code above in your browser using DataLab