gma*_*man 4 c++ r syntactic-sugar rcpp
我一直在尝试使用Rcpp在c ++中获得向量的等级.我使用过其他糖功能
is_na();
c ++中的等级R函数是否有类似的糖函数.还有Rcpp中可用的R糖功能列表/
G. *_*eck 8
1)有一个order功能,在这里和order(order(x))是rank(x, ties = "first").
order
order(order(x))
rank(x, ties = "first")
2)第二种方式是:match(x, sort(x))
match(x, sort(x))
增加第二种方法.
归档时间:
11 年,6 月 前
查看次数:
1056 次
最近记录: