Displaying 1 result from an estimated 1 matches for "volumesxp".
Did you mean:
volumes
2006 Nov 17
1
Manipulating R lists in C
...alStr, 0,
mkChar( getPriceDataTypeAsString( p.getData().getType() ).c_str() ) );
SET_STRING_ELT( priceList, 0, typeValStr) ;
SEXP priceSXP;
PROTECT( priceSXP = allocVector( REALSXP, 1) );
REAL(priceSXP)[0] = p.getData().getPrice();
SET_VECTOR_ELT( priceList, 1, priceSXP);
SEXP volumeSXP;
PROTECT( volumeSXP = allocVector( REALSXP, 1 ) );
REAL(volumeSXP)[0] = p.getData().getVolume();
SET_VECTOR_ELT( priceList, 2, volumeSXP);
********WORKS UP TO HERE*************
// add the names of the list items (type,price,volume)
SEXP dimnames;
PROTECT( dimnames = allocVect...