Learn R Programming

healthcareai (version 1.2.4)

getPipedWordCount: Count number of words in pipe-delimited string

Description

For a given string with pipe(s), count the number of word-like sections that are separated by pipes.

Usage

getPipedWordCount(string)

Arguments

string

A string with pipes

Value

A count of number of words in input string.

See Also

healthcareai findVariation createVarianceTallTable

Examples

Run this code
# NOT RUN {
res <- getPipedWordCount('hello|sir')
res
# }

Run the code above in your browser using DataLab