avg_word_len: Calculate average word length in a string

Description Usage Arguments Value Examples

View source: R/textfeatureinfor.R

Description

Calculate average word length in a string

Usage

1

Arguments

text

A character vector for the average word length extraction.

Value

A numeric vector representing the average word length in the text.

Examples

1
2
3
x <- "Here are some words"
avg_word_len(x)
4

UBC-MDS/textfeatureinfor documentation built on Feb. 12, 2022, 7:48 a.m.