作者celestialgod (攸蓝)
看板R_Language
标题[分享] rle指令 (rewritten in Rcpp)
时间Fri Mar 27 13:41:48 2015
[关键字]: lengths of runs of equal values in a vector
[出处]:
https://stat.ethz.ch/R-manual/R-devel/library/base/html/rle.html
[重点摘要]:
以前没看过的指令,感觉很实用
并且改写一个Rcpp的版本:
http://pastebin.com/0NbM1qbB
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.83.182.134
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1427434911.A.D41.html
※ 编辑: celestialgod (111.83.182.134), 03/27/2015 13:43:09
1F:推 Godkin: 03/27 20:01
2F:推 cywhale: thanks for sharing the good example~~ 03/27 21:44