[Rcpp-commits] r3064 - pkg/RcppEigen/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jun 14 22:18:55 CEST 2011


Author: dmbates
Date: 2011-06-14 22:18:55 +0200 (Tue, 14 Jun 2011)
New Revision: 3064

Modified:
   pkg/RcppEigen/man/fastLm.Rd
Log:
Change order of fastLmPure arguments in the example.  Dirk said I would miss one of these. :-)


Modified: pkg/RcppEigen/man/fastLm.Rd
===================================================================
--- pkg/RcppEigen/man/fastLm.Rd	2011-06-14 20:08:03 UTC (rev 3063)
+++ pkg/RcppEigen/man/fastLm.Rd	2011-06-14 20:18:55 UTC (rev 3064)
@@ -79,10 +79,10 @@
 }
 \examples{
   require(datasets)
-  data(trees)
+#  data(trees)  # Unnecessary - the datasets package uses LazyData
 
   ## bare-bones direct interface
-  flm <- fastLmPure( log(trees$Volume),  cbind(1, log(trees$Girth)) )
+  flm <- fastLmPure( cbind(1, log(trees$Girth)), log(trees$Volume) )
   print(flm)
 
   ## standard R interface for formula or data returning object of class fastLm
@@ -98,7 +98,7 @@
   set.seed(1)
   dd$y <- mm \%*\% seq_len(ncol(mm)) + rnorm(nrow(mm), sd = 0.1)
   summary(lm(y ~ f1 * f2, dd))     # detects rank deficiency
-  try(summary(fastLm(y ~ f1 * f2, dd))) # need to rewrite this
+  try(summary(fastLm(y ~ f1 * f2, dd))) # also detects rank deficiency
 }
 \keyword{regression}
 



More information about the Rcpp-commits mailing list