Learn R Programming

fritools (version 4.6.0)

string2words: Convert a Character Vector Into an Enumeration

Description

Convert a Character Vector Into an Enumeration

Usage

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

Value

A data.frame.

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?

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

Run this code
string2words(c("beech", "oak", "ash"))

Run the code above in your browser using DataLab