December 2012

Project Euler in R Problem 9

December 13, 2012 | Frank Portman

In Problem 9 of Project Euler we are tasked with finding the product (abc) of the Pythagorean Triplet (a, b, c) such that a + b + c = 1000. A Pythagorean triplet is a set of three natural numbers such that a2 + b2 = c2. To solve this problem, we firs... [Read more...]

R pitfalls #4: redefining the basics

December 13, 2012 | Luis

I try to be economical when writing code; for example, I tend to use single quotes over double quotes for characters because it saves me one keystroke. One area where I don’t do that is when typing TRUE and FALSE … Continue reading → [Read more...]

Trading with SVMs: Performance

December 13, 2012 | ivannp

To get a feeling of SVM performance in trading, I run different setups on the S&P 500 historical data from … the 50s. The main motif behind using this decade was to decide what parameters to vary and what to keep steady prior to running the most important tests. Treat it ... [Read more...]

Mapping GPS Tracks in R

December 13, 2012 | Mollie

This is an explanation of how I used R to combine all my GPS cycling tracks from my Garmin Forerunner 305.Converting to CSVYou can convert pretty much any GPS data to .csv by using GPSBabel. For importing directly from my Garmin, I used the comman... [Read more...]

Testing Assumption Testing

December 13, 2012 | PirateGrunt

I’ve been doing a lot of linear modeling this year. That’s not much different than any ordinary year, but now I’m doing it in R. I had spent a bit of time in recent years trying to look at loss reserving as a multivariate regression. Excel is ... [Read more...]

Political revolutions on Twitter, visualized with R

December 13, 2012 | David Smith

Twitter has become a powerful medium for organizing and communicating with factions during popular uprisings: the crisis in Egypt, the uprising in Syria, the revolution in Iran, and other conflicts all around the world. Twitter's effectiveness relies on its ability for the various factions to self-organize and to fight the ... [Read more...]

"R" : Identifying peaks

December 13, 2012 | jrcuesta

The function "identify"  from "R",  is very useful to check the spectrum for peaks or areas of interest. I use it here to see the wavelength with the highest variability in the Shootout-2012 Calibration Set. This wavelength has a high variabi...
[Read more...]

Nataniele Argento

December 13, 2012 | Gianluca Baio

Effectively, the Italian election campaign is already in full swing, so I tried to start collecting some data to see what we are about to face. If I have time and manage to get some good data, I'll try to replicate the analysis I made for the US election (surely ... [Read more...]

Fuzzy clustering with fanny()

December 13, 2012 | is.R()

This is kind of a fun example, and you might find the fuzzy clustering technique useful, as I have, for exploratory data analysis. In this Gist, I use the unparalleled breakfast dataset from the smacof package, derive dissimilarities from breakfast it... [Read more...]

Creating 2011 Census Output Area Change Maps Using R

December 13, 2012 | Alex Singleton » R

The 2001 Census used a different set of Output Areas (OA) than the current 2011 boundaries; reflecting changes in the spatial distribution of the underlying population. For example, if an area has become more heavily populated since 2001, it makes sense that a previous OA might be split into multiple new segments. The ... [Read more...]

Is invasive?

December 13, 2012 | Recology - R

The Global Invasive Species Database (GISD) (see their website for more info here) has data on the invasiveness status of many species. From taxize you can now query the GISD database. Introducing the function gisd_isinvasive. This function was contributed to taxize by Ignasi Bartomeus, a postdoc at the Swedish ... [Read more...]

more d3 with shiny and R (CPI from bls.gov)

December 12, 2012 | klr

Extending the marginal success achieved in d3 Showreel Combined with R and Shiny  d3 and r interacting through shiny I have converted http://bl.ocks.org/3891711 to use data supplied by an R load of http://bls.gov CPI data through Rstudio's Shin...
[Read more...]

In case you missed it: November 2012 Roundup

December 12, 2012 | David Smith

In case you missed them, here are some articles from November of particular interest to R users. In the webinar "Real-Time Predictive Analytics with Big Data", I showed how R fits into a real-time production system. R package developer Yihui Xie shares his favorite software and hardware in an interview ... [Read more...]

Survival of the sweetest

December 12, 2012 | Robert

On receiving an advent calendar from one of our course directors, I suggested we could track each other’s chocolate consumption in a survival analysis and establish who was eating significantly more chocs. Strangely, everybody refused to take part, so I … Continue reading → [Read more...]
1 7 8 9 10 11 16

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)