powered by
strs_lstrip removes leading characters (spaces by default) from each element of a character vector. It is similar to Python's str.lstrip() method.
strs_lstrip
str.lstrip()
strs_lstrip(string, chars = NULL)
A character vector of the same length as string, with specified characters removed from the beginning of each element.
string
A character vector where each element is a string to be left-stripped.
An optional string of characters to be removed from the beginning of each element. If NULL, whitespace is removed.
Python str.lstrip() documentation
strs_lstrip(" hello world") strs_lstrip("xxxyhello world", chars = "xy")
Run the code above in your browser using DataLab