n_words {syn}R 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]

[Package syn version 0.1.0 Index]