MyNixOS website logo
Description

Data and Function to Work with Emojis.

Contains data about emojis with relevant metadata, and functions to work with emojis when they are in strings.

emoji

R-CMD-check CRANstatus Downloads lifecycle Codecov testcoverage

The goal of emoji is to provide up to date information inn the form of data sets on emojis and their use.

Installation

You can install the released version of emoji from CRAN with:

install.packages("emoji")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/emoji")

Example

The main data set in this package is the emojis data set which contains almost all the information contained in this package.

library(emoji)

emojis
#> # A tibble: 4,702 × 19
#>    emoji name  group subgr…¹ version points nrunes runes quali…² vendo…³ vendo…⁴
#>    <chr> <chr> <chr> <chr>   <chr>   <list>  <int> <chr> <chr>   <lgl>   <lgl>  
#>  1 😀    grin… Smil… face-s… 1.0     <int>       1 1F600 fully-… TRUE    TRUE   
#>  2 😃    grin… Smil… face-s… 0.6     <int>       1 1F603 fully-… TRUE    TRUE   
#>  3 😄    grin… Smil… face-s… 0.6     <int>       1 1F604 fully-… TRUE    TRUE   
#>  4 😁    beam… Smil… face-s… 0.6     <int>       1 1F601 fully-… TRUE    TRUE   
#>  5 😆    grin… Smil… face-s… 0.6     <int>       1 1F606 fully-… TRUE    TRUE   
#>  6 😅    grin… Smil… face-s… 0.6     <int>       1 1F605 fully-… TRUE    TRUE   
#>  7 🤣    roll… Smil… face-s… 3.0     <int>       1 1F923 fully-… TRUE    TRUE   
#>  8 😂    face… Smil… face-s… 0.6     <int>       1 1F602 fully-… TRUE    TRUE   
#>  9 🙂    slig… Smil… face-s… 1.0     <int>       1 1F642 fully-… TRUE    TRUE   
#> 10 🙃    upsi… Smil… face-s… 1.0     <int>       1 1F643 fully-… TRUE    TRUE   
#> # … with 4,692 more rows, 8 more variables: vendor_twitter <lgl>,
#> #   vendor_one <lgl>, vendor_facebook <lgl>, vendor_messenger <lgl>,
#> #   vendor_samsung <lgl>, vendor_windows <lgl>, keywords <list>,
#> #   aliases <list>, and abbreviated variable names ¹​subgroup, ²​qualified,
#> #   ³​vendor_apple, ⁴​vendor_google

the emoji_name is a vector of emojis with descriptive names

emoji_name[1:10]
#>                        grinning                   grinning_face 
#>                            "😀"                            "😀" 
#>                          smiley     grinning_face_with_big_eyes 
#>                            "😃"                            "😃" 
#>                           smile grinning_face_with_smiling_eyes 
#>                            "😄"                            "😄" 
#>                            grin  beaming_face_with_smiling_eyes 
#>                            "😁"                            "😁" 
#>                        laughing                       satisfied 
#>                            "😆"                            "😆"

Each of the emojis have zero or more keywords associated with them.

emoji_keyword[c(150:155)]
#> $Aries
#> [1] "ram"   "aries"
#> 
#> $army
#> [1] "military_helmet"
#> 
#> $arrivals
#> [1] "flight_arrival"
#> 
#> $arriving
#> [1] "flight_arrival"
#> 
#> $arrow
#>  [1] "cupid"                     "calling"                  
#>  [3] "envelope_with_arrow"       "bow_and_arrow"            
#>  [5] "up_arrow"                  "up_right_arrow"           
#>  [7] "right_arrow"               "down_right_arrow"         
#>  [9] "down_arrow"                "down_left_arrow"          
#> [11] "left_arrow"                "up_left_arrow"            
#> [13] "up_down_arrow"             "right_arrow_curving_left" 
#> [15] "left_arrow_curving_right"  "right_arrow_curving_up"   
#> [17] "right_arrow_curving_down"  "arrows_clockwise"         
#> [19] "arrows_counterclockwise"   "back"                     
#> [21] "end"                       "on"                       
#> [23] "soon"                      "top"                      
#> [25] "twisted_rightwards_arrows" "repeat"                   
#> [27] "repeat_one"                "play_button"              
#> [29] "fast_forward"              "reverse_button"           
#> [31] "rewind"                    "last_track_button"        
#> [33] "arrow_up_small"            "arrow_double_up"          
#> [35] "arrow_down_small"          "arrow_double_down"        
#> 
#> $art
#> [1] "performing_arts" "art"

when can use emoji_keyword together with emoji_name to show then emojis for each keyword.

lapply(emoji_keyword[c(150:155)], function(x) unname(emoji_name[x]))
#> $Aries
#> [1] "🐏" "♈"
#> 
#> $army
#> [1] "🪖"
#> 
#> $arrivals
#> [1] "🛬"
#> 
#> $arriving
#> [1] "🛬"
#> 
#> $arrow
#>  [1] "💘" "📲" "📩" "🏹" "⬆️"  "↗️"  "➡️"  "↘️"  "⬇️"  "↙️"  "⬅️"  "↖️"  "↕️"  "↩️"  "↪️" 
#> [16] "⤴️"  "⤵️"  "🔃" "🔄" "🔙" "🔚" "🔛" "🔜" "🔝" "🔀" "🔁" "🔂" "▶️"  "⏩" "◀️" 
#> [31] "⏪" "⏮️"  "🔼" "⏫" "🔽" "⏬"
#> 
#> $art
#> [1] "🎭" "🎨"

Code of Conduct

Please note that the emoji project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Metadata

Version

15.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows