There are many examples of the functions of Stringr from which the main examples are as follows :
Str_count()
: It count the number of patterns. Syntax= str_count(x, pattern)
Str_locate()
: It gives the location or position of the match. Syntax= str_locate(x, pattern)
Str_extract()
: It extract the text of the match. Syntax= Str_extract(x, pattern)
Str_match()
: It extract parts of the match defined by parenthesis. Syntax = str_match(x, pattern)
Str_split()
: It splits a string into multiple pieces. Syntax = str_split(x, pattern)