segment.string: Split strings into their constituent segments.

Description Usage Arguments Functions Examples

View source: R/dists.R

Description

Split strings into their constituent segments (and count them).

Usage

1
2
3

Arguments

x

one or more strings to be split (and, optionally, counted)

split

the boundary character or sequence at which to segment the string(s). The default, NULL, splits the string after every character.

Functions

Examples

1
2
3
4
segment.string(c("asd", "fghj"))

segment.string(c("la-dee-da", "lala-la"), "-")
segment.counts(c("asd", "aasd", "asdf"))

kevinstadler/cultevo documentation built on June 29, 2017, 8 p.m.