flag: Flag emoji

Description Usage Arguments Value Examples

View source: R/flag.R

Description

Flag emoji

Usage

1

Arguments

pattern

pattern suitable for [stringr::str_detect] matched against the name of the flag

Value

If the pattern matches a single flag, the emoji ( with classes "flag" and "emoji" ) is returned

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

flag( "^Fra" )
flag( "New Zealand" )

# name of all the flags
if( require(dplyr) ){
 emo::jis %>%
   filter( group == "Flags" ) %>%
   pull(name)
}


## End(Not run)

hadley/emo documentation built on Dec. 16, 2019, 3:42 p.m.