n_words: Return the number of words in a string

View source: R/n-words.R

n_wordsR Documentation

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

syn_end <- syn("end")
syn_end_words <- n_words(syn_end)
syn_end[syn_end_words <= 1]

ropenscilabs/syn documentation built on Feb. 3, 2024, 4:32 a.m.