带有em :: ji的英国表情符号

时间:2019-01-10 00:06:56

标签: r

emo包(https://github.com/hadley/emo)允许将表情符号插入R。我找不到英国国旗的表情符号名称。

$(window).on('load', function() {
    $("#content").load("content/index_content.php");

    $(document).on('click', 'a', function(e) {
        e.preventDefault();
        $("#nav div").removeClass("active");
        $(this).children("div").addClass("active");
        $('#content').load($(this).attr('href'));
        return false;
    )};
)};

我也尝试过> emo::ji("Australia") > emo::ji("Laos") > emo::ji("United Kingdom") Error in find_emoji(keyword) : Couldn't find emoji 'United Kingdom' "UK""GB",但没有成功。

2 个答案:

答案 0 :(得分:3)

它是uk

ji("uk")
 

emo::ji_name(完整列表)与grep一起使用会有所帮助:

grep("uk", names(emo::ji_name), value = TRUE, ignore.case = TRUE)
# [1] "uk"      "ukraine"

grep("britain", names(emo::ji_name), value = TRUE, ignore.case = TRUE)
# character(0)

grep("Laos", names(emo::ji_name), value = TRUE, ignore.case = TRUE)
# [1] "laos" "Laos"

答案 1 :(得分:1)

英国国旗的书面名称为“ uk”。

"uk": {
    "keywords": ["united", "kingdom", "great", "britain", "northern", "ireland", "flag", "nation", "country", "banner", "british", "UK", "english", "england", "union jack"],
    "char": "",
    "fitzpatrick_scale": false,
    "category": "flags"
  },

emo package that you are using使用emojilib package作为其基础,因此您可以使用该项目的emoji searcher(或者您可以只浏览源代码)来查找自己的表情符号寻找。