{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","author_name":"delma","published":"2012-10-25 05:39:06","author_url":"https://blog.hatena.ne.jp/delma/","version":"1.0","height":"190","title":"\u6b20\u640d\u5024\u306e\u51e6\u7406\u3001is.na()\u3068ifelse()","description":"\u30af\u30ea\u30fc\u30cb\u30f3\u30b0\u3055\u308c\u3066\u306a\u3044\u30c7\u30fc\u30bf\u306b\u6b20\u304b\u305b\u306a\u3044\u6b20\u640d\u5024\uff08NA\uff09\u3002 \u3068\u308a\u3042\u3048\u305a\u3053\u3044\u3064\u3092\u98db\u3070\u3057\u3066\u8a08\u7b97\u3057\u305f\u3044\u306a\u3089is.na()\u3068ifelse()\u304c\u4fbf\u5229\u3002 \u4f8b\u3048\u3070\u3001 > a=c(1,NA,0,3) > a [1] 1 NA 0 3 > ifelse(is.na(a),0,a) [1] 1 0 0 3 \u3053\u3093\u306a\u611f\u3058\u3002 \u5426\u5b9a\u5f62\u306b\u3057\u305f\u3051\u308c\u3070!is.na()\u3092\u4f7f\u3048\u3070\u3044\u3044\u3089\u3057\u3044","categories":["R"],"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdelma.hatenablog.com%2Fentry%2F20121025%2F1351111146\" title=\"\u6b20\u640d\u5024\u306e\u51e6\u7406\u3001is.na()\u3068ifelse() - Take Your Time\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://delma.hatenablog.com/entry/20121025/1351111146","type":"rich","blog_title":"Take Your Time","blog_url":"https://delma.hatenablog.com/"}