nwords: Count the number of words in text string

View source: R/nwords.R

nwordsR Documentation

Count the number of words in text string

Description

Count the number of words in text string

Usage

nwords(string, pseudo = FALSE)

Arguments

string

Pass text string here.

pseudo

Determines whether groups of special characters are matched. Defaults to FALSE (not matched)

Examples

nwords("Oh my what a lovely day. We should all go out and play!")


martinctc/textworks documentation built on Oct. 5, 2022, 8:09 p.m.