â»ãã®è¨äºã¯ R Advent Calendar 2014 : ATND ã® 22 æ¥ç®ã®è¨äºã§ãã 0. ãã®è¨äºã®è¦ç´ R ã® foreach ããã±ã¼ã¸ãæ¹è¯ãã¦ãããã©ã«ãã§ä¸¦åè¨ç®ããããã«ããããã±ã¼ã¸ pforeach ãä½ãã¾ããã pforeach - Easy to parallel processing in R ããã«ãããR ã§ã®ä¸¦åè¨ç®ãä¸è¨ã®ããã«ã·ã³ãã«ã«æ¸ããã¨ãã§ãã¾ãã library(pforeach) pforeach(i = 1:100)({ i ** 2 }) ããã¯ãå¾æ¥ã® foreach ã§æ¬¡ã®ããã«æ¸ãããã®ã¨åãåä½ããã¾ãã library(foreach) library(doParallel) cl <- makeCluster(detectCores()) registerDoParallel(cl) foreach(i = 1
{{#tags}}- {{label}}
{{/tags}}