Skip to content
Prev 156387 / 398506 Next

character position

you could use gsub(), e.g.,

strg <- "There are 20 species in this grid"
gsub("[^0-9]", "", strg)


I hope it helps.

Best,
Dimitris
Paulo Cardoso wrote: