Monthly Archives: February 2013

Set operations on more than two sets in R

February 6, 2013
By

ProblemSet operations are a common place thing to do in R, and the enabling functions in the base stats package are:intersect(x, y)union(x, y)setdiff(x, y)setequal(x, y)That said, you'll note that each ONLY takes two arguments - i.e. set X and set Y - ...

Read more »

Modelling memory and news trajectories

February 6, 2013
By
Modelling memory and news trajectories

Modelling memoryIn the text below I present two models I've made to quantify and visualise the diverging trajectories of memory and news events, and conclude that linear regression may be used to test which model best describes the story. First, though, I contextualise this with an illustration from the...

Read more »

Oracle R Enterprise 1.3 gives predictive analytics an in-database performance boost

February 6, 2013
By
Oracle R Enterprise 1.3 gives predictive analytics an in-database performance boost

Recently released Oracle R Enterprise 1.3 adds packages to R that enable even more in-database analytics. These packages provide horizontal, commonly used techniques that are blazingly fast in-database for large data. With Oracle R Enterprise 1.3, Oracle makes R even better and usable in enterprise settings. (You can download ORE 1.3 here and documentation here.) ...

Read more »

Make building R packages easier with devtools

February 6, 2013
By

If you're writing any significant amount of R code, you might want to start think about bundling it up into packages. An R package combines functions, data, documentation and unit tests, and is a convenient and reliable system to manage and version collections of R content that could otherwise become unwieldy. And if you want to share your code...

Read more »

The new Stan 1.1.1, featuring Gaussian processes!

February 6, 2013
By
The new Stan 1.1.1, featuring Gaussian processes!

We just released Stan 1.1.1 and RStan 1.1.1 As usual, you can find download and install instructions at: http://mc-stan.org/ This is a patch release and is fully backward compatible with Stan and RStan 1.1.0. The main thing you should notice is that the multivariate models should be much faster and all the bugs reported for The post The...

Read more »

xts object – subscript out of bounds

February 6, 2013
By
xts object – subscript out of bounds

I bet you have seen this error a few times. When I compare large xts objects with different number of observations it would hit me right towards the end of the analysis.I wrote a small function, which allows me to check the length of the sets in advanc...

Read more »

A book about Rcpp

February 5, 2013
By

Some little birds had already been whispering about it, but I didn't want to jinx it and told myself I would wait with an announcement until the booksellers have (at least) placeholder pages. And as I learned from Duncan Murdoch via email earlier toda...

Read more »

counts numbers in a interval

February 5, 2013
By

Say I have a list of values, and I cut them by some break points, how do I know the number of values in each interval?We know cut() function in R works for the purpose.  For example,tx0 <- c(9, 4, 6, 5, 3, 10, 5, 3, 5)x <- rep(0:8, tx0)> ...

Read more »

Learning RStudio for R Statistical Computing

February 5, 2013
By
Learning RStudio for R Statistical Computing

"Learning RStudio for R Statistical Computing" will teach you how to quickly and efficiently create and manage statistical analysis projects, import data, develop R scripts, and generate reports and graphics. R developers will learn about package development, coding principles, and … Continue reading →

Read more »

Dallas R Users: Learn Shiny this Saturday, 2/9

February 5, 2013
By

Just a heads-up for any R users in the Dallas/Fort Worth Metroplex: I’ll be presenting at the Dallas R Users Group this Saturday, 2/9/2013 at 10:00AM at the University of Dallas (1845 East Northgate Drive, Irving, TX). I’ll be talking about how to use RStudio’s new Shiny framework to create R-powered web applications. For the

Read more »