Skip to content

Commit 6828208

Browse files
author
Youzhi Yu
committed
updated vignette
1 parent c8ba5c7 commit 6828208

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

R/tidyEmoji.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' \code{tidyEmoji} package
22
#'
3-
#' A tidy way working with text containing Emoji
3+
#' A tidy way working with text containing Emoji.
44
#'
55
#' @docType package
66
#' @name tidyEmoji

man/tidyEmoji.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/introduction.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ knitr::opts_chunk$set(
2424

2525
Extracting Emoji from text might not be an easy task. This is especially the case when researchers want to understand the Emoji distribution presented in the full corpus of text data, as Unicode does not work well in conjunction with regular expression. (If you use the stringr package, the filter process is: `str_detect(text, "\Uhhhhhhhh")`). Part of the difficulty arises when we have to input each Emoji Unicode specifically to find out how many pieces of text contain this Emoji, and it would be daunting to input all existing Unicodes one by one by the user. Another challenge is that not all Unicodes are Emoji. In other words, even if we can find a way to filter all text containing some kind of Unicode, but not all of it might have Emoji per se.
2626

27+
tidyEmoji extracts, counts, and summarizes Emoji data while inheriting the tidyverse style, making the user experience as effortless as possible.
28+
2729
## When to use the package?
2830

2931
This package is specifically designed for working Emoji-related text. The ideal case is analyzing Tweets, which comprise Emoji from time to time.
@@ -165,7 +167,7 @@ ata_emoji_category <- ata_tweets %>%
165167
ata_emoji_category
166168
```
167169

168-
Emojis can be categorized into 10 different categories. For more information in this regard, just simply type `category_unicode_crosswalk` at the console.
170+
Emojis can be categorized into 10 different categories. For more information in this regard, just simply type `?category_unicode_crosswalk` at the console.
169171

170172
If users want to classify each Emoji Tweet for its category/categories, `emoji_categorize()` is the right function to use. `.emoji_category` is an added column indicating the Emoji category for each Tweet. If a Tweet has more than one category, `|` is used to separate various categories.
171173

0 commit comments

Comments
 (0)