count_punc: Count punctuations

Description Usage Arguments Value Examples

View source: R/textfeatureinfor.R

Description

Count punctuations

Usage

1

Arguments

text

A character vector with, at most, one element.

Value

A vector containing the number of punctuations.

Examples

1
2
3
x <- "Hello, World!"
count_punc(x)
2

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