[Rcpp-devel] RcppEigen: Getting and setting dimnames of sparse matrix
Dirk Eddelbuettel
edd at debian.org
Sat Jan 19 17:13:44 CET 2013
On 19 January 2013 at 10:38, Douglas Bates wrote:
| The Eigen sparse matrix only contains the numeric information, it doesn't
| contain information like Dimnames that are specific to the R structure. If
| you want to access the slots or set their values it is easiest to do that with
| the Rcpp::S4 class object.
|
| Of course it helps to use R's str function first to ensure that you know what
| the structure actually is.
Which is _exactly_ what the two "using attributes" examples (that I pointed
to in my initial reply to Søren) do.
They do that for an S3 object (from xts) as I work less frequently with S4
but the basic idea is exactly the same.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list