
Last chance! 50% off unlimited learning
Sale ends in
find emoji
jitsu_quos(...)jitsu_filter(...)
jitsu(...)
jitsu_set(...)
set of filters, see details
`...` can contain - bare symbols or strings, e.g. `cat` or `"cat"`. This will look for an exact word match in the name, the aliases or the keywords. - one sided formulas, e.g. `~cat`, `~"cat"`, `~regex("cat")`. The rhs of the formula is a regular expression suitable for [stringr::regex()] matched against the name - Any other call are just used verbatim in `filter`
`jitsu_filter` reworks the `...` as above and eventually returns the results of [dplyr::filter()] on the [jis] tibble.
`jitsu` selects one match at random between the results of `jitsu_filter`
`jitsu_set` makes a vector of all the selected emojis
# NOT RUN {
# look these words in name, aliases and keywords
jitsu(cat,face)
jitsu(tears)
jitsu(poop)
jitsu(sad,cat)
jitsu(monkey)
# regex lookup
jitsu(~cat)
jitsu(~"^cat")
jitsu(~regex("^cat"))
# usual filter
jitsu(name == "cat")
jitsu(skin_tone == "light" )
jitsu(subgroup == "face-fantasy" )
# get all the results in a new tibble
jitsu_filter( monkey )
jitsu_filter( ~"^cat" )
jitsu_filter(hand, skin_tone == "light" )
# just get the emojis
jitsu_set( monkey )
jitsu_set( ~"^cat" )
jitsu_set(hand, skin_tone == "medium-dark" )
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab