Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


syn (version 0.1.0)

n_words: Return the number of words in a string

Description

Return the number of words in a string

Usage

n_words(x)

Arguments

x

a string

Value

vector of numbers

Examples

Run this code
# NOT RUN {
syn_end <- syn("end")
syn_end_words <- n_words(syn_end)
syn_end[syn_end_words <= 1]
# }

Run the code above in your browser using DataLab