count_emojis: Count emojis in character vectors

View source: R/count_emojis.R

count_emojisR Documentation

Count emojis in character vectors

Description

Function to count the number of each emoji in each item in a character vector.

Usage

count_emojis(text)

Arguments

text

A character vector.

Value

A data frame with rows representing items in the input character vector and columns representing emojis. Each value in the data frame reflects the number of one emoji (column) in one element of the input character vector (row).

Author(s)

Rebecca Godard

Examples

count_emojis(c("Hello \U001f600", "Hello \U001f622"))
Note: Emojis are not supported by the software used to generate package manuals, so
the unicode character codes are used instead.

rjgodard/emojis documentation built on Nov. 29, 2024, 7:16 p.m.