Monthly Archives: February 2010

Easy way of determining number of lines/records in a given large file using R

February 10, 2010
By

Dear Readers,Today I would like to post the easy way of determining number of lines/records in any given large file using R.Directly to point.1) If data set is small let say less than 50MB or around in R one can read it with ease using: length(readLines("xyzfile.csv"))2) But if data set is too large say more...

Read more »

Easy way of determining number of lines/records in a given large file using R

February 10, 2010
By

Dear Readers,Today I would like to post the easy way of determining number of lines/records in any given large file using R.Directly to point.1) If data set is small let say less than 50MB or around in R one can read it with ease using: length(readLines("xyzfile.csv"))2) But if data set is too large say more...

Read more »

Typos in Chapters 1, 4 & 8

February 10, 2010
By
Typos in Chapters 1, 4 & 8

Thomas Clerc from Fribourg pointed out an embarassing typo in Chapter 8 of “Introducing Monte Carlo Methods with R”, namely that I defined on page 247 the complex number as the squared root of 1 and not of -1! Not that this impacts much on the remainder of the book but still an embarassment!!! An

Read more »

Frank Harrell to teach Regression Modeling Strategies short course

February 9, 2010
By

If you're using regression models but want really hone your regression-fu this short course on Regression Modeling Strategies by Frank Harrell looks really interesting. Frank is the author of the book Regression Modeling Strategies which is my go-to reference whenever I'm doing regression of any kind in R, so it's definitely worth a trip to Nashville to if you...

Read more »

Using the R multicore package in Linux with wild and passionate abandon

February 9, 2010
By
Using the R multicore package in Linux with wild and passionate abandon

One of my primary uses for R is to build stochastic simulations of insurance portfolios and reinsurance treaties. It’s not uncommon for each of my simulations to take 20 seconds or more to complete (if you’re doing the math, that’s 55 hours for 10K sims or, approximately 453 games of solitaire) . Initially I ran

Read more »

Package Update Roundup: Dec 2009 – Jan 2010

February 9, 2010
By

A special double edition of the Package Update Roundup this month! This is a list of new or updated packages that were released for R in December and January, as announced on the r-packages mailing list. To include other updates on this list, please email David Smith. For a complete list of all updates on CRAN, see the CRANberries...

Read more »

Python in Sweave document

February 9, 2010
By

Lately I have been using a lot of Python for signal processing and I quite like SciPy. However, I have been missing something like Sweave, which is great literate programming environment for R. Today I managed to look a bit more into it and found this hack on how to use Python code in Sweave

Read more »

Rcpp 0.7.5

February 9, 2010
By

pre{ border: 1px solid black; font-size: x-small ; }Dirk released Rcpp 0.7.5 yesterdayThe main thing is the smarter wrap function that now uses techniques of type traits and template meta-programming to have a compile time guess at whether a...

Read more »

Rcpp 0.7.5

February 9, 2010
By

A new release of our Rcpp R / C++ interface classes is now out, the version number is 0.7.5. It comes on the heels of the release 0.7.4 and keeps with our semi-frantic schedule of releases every ten or so days going. The package is now on CRAN and Debi...

Read more »

Rcpp 0.7.5

February 9, 2010
By

A new release of our Rcpp R / C++ interface classes is now out, the version number is 0.7.5. It comes on the heels of the release 0.7.4 and keeps with our semi-frantic schedule of releases every ten or so days going. The package is now on CRAN and Deb...

Read more »