dplyrä¸ã®é¢æ°ã«ããã¦å¤æ°ãcharacter stringã§æå®ããªããã¨
以ä¸ããã
http://stackoverflow.com/questions/25546759/randomness-in-dplyr/25548505?noredirect=1#comment39903225_25548505
ãã¨ãã°n_distincté¢æ°ã®å¯¾è±¡ãæååã§æå®ããã¨ä¸å®å®ãªçµæãè¿ã£ã¦ããã
library(dplyr) > summarise(mtcars, n_distinct("mpg")) n_distinct("mpg") 1 23 > summarise(mtcars, n_distinct("mpg")) n_distinct("mpg") 1 18 > summarise(mtcars, n_distinct("mpg")) n_distinct("mpg") 1 16 > summarise(mtcars, n_distinct("mpg")) n_distinct("mpg") 1 16 > summarise(mtcars, n_distinct("mpg")) n_distinct("mpg") 1 16
vectorã§æå®ããã°ä½åº¦ãã£ã¦ãæ£ç¢ºãªçããè¿ã£ã¦ããã
> summarise(mtcars, n_distinct(mpg)) n_distinct(mpg) 1 25 > summarise(mtcars, n_distinct(mpg)) n_distinct(mpg) 1 25
githubã®issueã«æãã£ã¦ããã®ã§ãã°ã¨ãã¦ä¿®æ£ãããã¨æããã©ã¨ããããã¡ã¢ã