Learn R Programming

tuber (version 1.4.1)

has_emoji: Detect emojis in text

Description

Checks whether text contains any emoji characters.

Usage

has_emoji(text)

Value

Logical vector indicating whether each element contains emojis

Arguments

text

Character vector to check for emojis

Examples

Run this code
has_emoji("Hello world")
has_emoji("Hello world! \U0001F44B")
has_emoji(c("No emoji", "Has emoji \U0001F600", "Also none"))

Run the code above in your browser using DataLab