string2words: Convert a Character Vector Into an Enumeration

View source: R/string2words.R

string2wordsR Documentation

Convert a Character Vector Into an Enumeration

Description

Convert a Character Vector Into an Enumeration

Usage

string2words(x, separator = ",", last = "and", add_whitespace = TRUE)

Arguments

x

A character vector.

separator

A separator used for the enumeration.

last

The separator used last for the enumeration.

add_whitespace

Add whitespace after separators?

Value

A data.frame.

See Also

Other bits and pieces: golden_ratio(), is_difftime_less(), is_valid_primary_key(), pause(), r_cmd_install(), rownames2col(), str2num(), strip_off_attributes(), tapply(), throw()

Examples

string2words(c("beech", "oak", "ash"))

fritools documentation built on June 8, 2025, 11:59 a.m.