regex last word in string r code example
Example: regex last word in string r
library(stringr)
sentence <- "The quick brown fox"
word(sentence,-1)
[1] "fox"
library(stringr)
sentence <- "The quick brown fox"
word(sentence,-1)
[1] "fox"