Re: [Rcpp-devel] getting ncol(DF) in Rcpp

2011-06-27 Thread Silkworth,David J.
-forge.wu-wien.ac.at Subject: Re: [Rcpp-devel] getting ncol(DF) in Rcpp A data.frame in R is a curious object that is really a list of the columns. So myDF.size() returns the number of columns. Try the enclosed R source file. On Mon, Jun 27, 2011 at 12:30 PM, Silkworth,David J. wrote: > You g

Re: [Rcpp-devel] getting ncol(DF) in Rcpp

2011-06-27 Thread Douglas Bates
A data.frame in R is a curious object that is really a list of the columns. So myDF.size() returns the number of columns. Try the enclosed R source file. On Mon, Jun 27, 2011 at 12:30 PM, Silkworth,David J. wrote: > You guys know I am here just to give you a chuckle. > > I wanted to build a f