Learn R Programming

tuber (version 1.4.1)

count_emojis: Count emojis in text

Description

Counts the number of emoji characters in text.

Usage

count_emojis(text)

Value

Integer vector with emoji counts for each element

Arguments

text

Character vector to count emojis in

Examples

Run this code
count_emojis("Hello world")
count_emojis("Hello \U0001F44B World \U0001F30D!")
count_emojis(c("No emoji", "\U0001F600\U0001F601\U0001F602"))

Run the code above in your browser using DataLab