<- "Hello work !"
ma_chaine
<- ma_chaine |> stringr::str_to_upper() ma_chaine_trans
Introduction to stringr
The package stringr is useful for playing with strings.
How to upper string
How to extract substring
<- "Il fait beau et chaud aujourd'hui"
ma_chaine
<- ma_chaine |> stringr::str_extract(pattern = "[a-z]{4} et ") ma_chaine_extrait