Category Archives: R Packages

R Packages

UnderConstruction

Posted in R Packages | Leave a comment

R Source Code

WordcloudSource code access is one of the great benefits of R.  Source code is available for base R and over 5,000 open source packages.  There are many reasons to view source code: to know what software does when documentation is vague or incomplete; to combine code objects in custom scripts or libraries; and to change source code as needed.  The following post defines the different types of R source code available and how to access R sources.

Posted in R Packages, R Programming | Comments Off on R Source Code

Fast File Reads (fread) for Large Data

freadThe standard way to read text files into R is to use the read.table() command.  However, many users struggle with time delays when loading large data sets.  An alternative command that offers significant speed improvements is fread(), or fast read, which can found in the data.table package.  The following code loads a tab delimited file with a million elements and reveals that fread() reduces load time by almost 99%, as confirmed by the benchmark performance stats at left.  The function is still under development, but it is available for download and doesn’t suffer from stability issues.  Instead, expect argument structure and command syntax to change over time.

Posted in Faster R, R Data Import, R Packages, R Programming | Comments Off on Fast File Reads (fread) for Large Data