# Attach packages
library(xpectr)
strings <- c(
"Hello! I am George. \n\rDon't call me Frank! 123",
" \tAs that, is, not, my, name!"
)
strip(strings)
strip(strings, remove_spaces = TRUE)
strip(strings, remove_numbers = TRUE)
Run the code above in your browser using DataLab