findLastWord: Find the Last Word of Each String

Description Usage Arguments Value Examples

View source: R/strings.R

Description

Find the Last Word of Each String

Usage

1
findLastWord(string)

Arguments

string

a character or character vector

Value

A character or character vector containing the last word of each entry

Examples

1
2
findLastWord("hello world") # "world"
findLastWord(c("hello world", "hello mom")) # c("world", "mom")

mattgarber4/myUtils documentation built on Dec. 13, 2020, 12:54 p.m.