Skip to contents

Count punctuations

Usage

count_punc(text)

Arguments

text

A character vector with, at most, one element.

Value

A vector containing the number of punctuations.

Examples

x <- "Hello, World!"
count_punc(x)
#> [1] 2
2
#> [1] 2