下面是R 中的C++file, 其中 NumericVector y=j; 这一行会报错,请问为什么啊?
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector f(NumericVector x) {
int s=min(x);
IntegerVector j=seq(0,s);
NumericVector y=j;
return (y);
}
|
楼主: 慧(会)幸福
|
963
0
[问答] Rcpp 中数据类型 |
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


