str_emoji_stats: Compute Emoji statistics for string

str_emoji_statsR Documentation

Compute Emoji statistics for string

Description

Compute Emoji statistics for string

Usage

str_emoji_stats(x, emojis.vec = rtweet::emojis$code)

Arguments

x

character vector, vectorized over elements

emojis.vec

character vector specifying Emoji Unicode values to be matched and extracted. Defaults to column "code" of the emojis data.

Value

A list (of lists) with elements

ratio

the ratio of Emoji characters relative to all characters of the string

count

the number of Emoji characters

emojis

a character vector recording all Emojis matched in (the current element of) 'x'


haukelicht/politicaltweets documentation built on July 3, 2023, 4:11 a.m.