search for: rcppstringvector

Displaying 4 results from an estimated 4 matches for "rcppstringvector".

2009 Jun 26
1
pass a vector to C++
Hi, Does anyone know how to pass a vector of strings, for example "c("1", "2", "3") to a C++ function? Should the input argument to the C++ function be vector<string>*? Thanks a lot! Ivo
2008 Dec 03
0
Rcpp package relaunched
...(scalar as well as vectors and vectors of vectors), o int (scalar as well as vectors and vectors of vectors), string, o STL vector types and vector<vector> types of int and double o STL vector of strings o internal Rcpp types RcppDate, RcppDateVector, RcppDatetime, RcppDatetimeVector, RcppStringVector, RcppVector of int or double, RcppMatrix of int or double, RcppFrame Rcpp was initially written by Dominick Samperi as part of his contributions to RQuantLib, and later released as a standalone package (under both the Rcpp and RcppTemplate names). Its development had ceased in late 2006. As...
2008 Dec 03
0
Rcpp package relaunched
...(scalar as well as vectors and vectors of vectors), o int (scalar as well as vectors and vectors of vectors), string, o STL vector types and vector<vector> types of int and double o STL vector of strings o internal Rcpp types RcppDate, RcppDateVector, RcppDatetime, RcppDatetimeVector, RcppStringVector, RcppVector of int or double, RcppMatrix of int or double, RcppFrame Rcpp was initially written by Dominick Samperi as part of his contributions to RQuantLib, and later released as a standalone package (under both the Rcpp and RcppTemplate names). Its development had ceased in late 2006. As...
2009 Sep 29
3
How do I access class slots from C?
Hi I'm trying to implement something similar to the following R snippet using C. I seem to have hit the wall on accessing class slots using C. library(fPortfolio) lppData <- 100 * LPP2005.RET[, 1:6] ewSpec <- portfolioSpec() nAssets <- ncol(lppData) setWeights(ewSpec) <- rep(1/nAssets, times = nAssets) ewPortfolio <- feasiblePortfolio( data = lppData, spec = ewSpec,