Regex Ostatnie słowo w ciągu R.
library(stringr)
sentence <- "The quick brown fox"
word(sentence,-1)
[1] "fox"
Trustworthy Whale
library(stringr)
sentence <- "The quick brown fox"
word(sentence,-1)
[1] "fox"