## Introducing R in the Enterprise

## Introducing R in the Enterprise

## Review of the R Cookbook

While we were at R/Finance in Chicago over the weekend (more on that later), it was a great pleasure to meet in person Paul Teetor, author of the R Cookbook (published by O'Reilly). If you haven't picked it up yet, I recommend checking it out: if you already have a basic familiarity of the R syntax, but want to...

## R/Finance conference in Chicago – April 29, 2011 to April 30, 2011

This was my first year to attend the R/Finance conference that focuses on the use R programming in applied finance. I was unable to get out there until mid-morning on Friday, so I missed Jeff Ryan’s tutorial on Automated Trading … Continue reading →

## Oscar awards: good actor versus good actress

## Unicode symbols in R

A friend asked me this morning if there was a way to plot a symbol in R (as a plotting character) representing a half-filled circle. I didn't know, but I figured this out (perhaps it's demonstrated elsewhere -- the ability to use Unicode symbols was added in 2008 or so -- but I didn't stumble across it). First, looking...

## Unicode symbols in R

A friend asked me this morning if there was a way to plot a symbol in R (as a plotting character) representing a half-filled circle. I didn't know, but I figured this out (perhaps it's demonstrated elsewhere -- the ability to use Unicode symbols was added in 2008 or so -- but I didn't stumble across it). First, looking...

## Home Away From Home

## Sustainable Futures conference in Manchester

Recently, Kevin Ummel gave a short conference about his PhD research at the Sustainable futures – Tyndall Centre researchers’ international conference. His work, named “Optimizing worldwide deployment of wind and solar power technologies via a high resolution, linear programming model”, is built with R. He is using the solaR package for the solar irradiance calculations,

## Postdoc on adaptive MCMC in Paris

Although the official deadline is long past, I just became aware of this call for a postdoctoral position in Paris starting next Fall. Please feel free to apply: Summary Adaptive Markov Chain Monte Carlo (MCMC) methods are currently a very active field of research. MCMC methods are sampling methods, based on Markov Chains which are

## Day #32-33 reporting, R and Birt

I’m starting on my real R-Scripts now. We got an assesment for some Reports and they needed my graphs and Veerle’s Reports. So the tasks are: Well distribution plot Quality plate control Surface Plot Heatmap CirclePlot and more to come̷...

## Building R packages for Windows when you don’t use it.

Are you a non-windows user wanting to share your R package with others who do use windows? There's a handy utility (http://win-builder.r-project.org/)that allows you to upload your .tar.gz file and it checks it, builds it, and sends you a link to downl...

## Building R packages for Windows when you don’t use it.

Are you a non-windows user wanting to share your R package with others who do use windows? There's a handy utility (http://win-builder.r-project.org/)that allows you to upload your .tar.gz file and it checks it, builds it, and sends you a link to downl...

## "Inside" Functors — Evaluating things more than once

(The examples here work with the version of insidefunctor tagged as "v1") I ran into an interesting problem using "inside" functors. Something is wrong in the following code (well, depending on what you thought it should do). > library(insidefunctor) > `%+.%` = fmap(`+`) > x = seq(0, 10, len = 50) > plot(x,...

## The R Inferno revised

Hell is new and improved. The R Inferno has been revised. If you don’t know of it, it is a short explanation of a few trouble spots when using the R language. Somehow the short explanation grew to approach book-length. It can be found at the usual place: http://www.burns-stat.com/pages/Tutor/R_inferno.pdf Major improvements An index has been … Continue reading...

## Here comes the sun

The solar irradiance incident outside the earth’s atmosphere is called the extraterrestial or extra-atmospheric irradiance. It is derived from the solar constant only with geometric equations. It can be easily calculated with the calcSol function of the solaR package. With this post I will show an example with some packages from the Spatial task view.

## Bayesian Confidence Intervals: Obama’s ‘That’-Addition and Informality

## Some rediscovered R scripts from spring cleaning

Gompertz Model Visualization # Gomperz growth function gomp <- function(x, a, b, k) a*exp(-b*exp(-k*x)) # Normal model with Gompertz mean function likelihood <- function(weight, age, sigma, a, b, k) { mu <- gomp(age, a, b, k) dnorm(weight, mu, sigma) } # Visualize the model visualize <- function(phi=40, theta=-35) { weight <- seq(0, 250,

## Schelling’s Neighborhood Model

## Produce Authentic Math Formulas in R Graphics

I remember a few weeks ago, there was a challenge in the R-help list to make the prime symbol in R graphics. In LaTeX, we simply write $X'$ or $X^\prime$. R has a rough support for math expressions (see demo(plotmath)) and they are certainly unsatisfactory for LaTeX users. In fact we can write native LaTeX

## Hofstader’s Chaotic Sequence

## Visualizing Terrain Surface Indicies with Scaled Arrows

## Bootstrap Confidence Intervals for Diversity Indices

## Produce Authentic Math Formulas in R Graphics

## Friday function triple bill: with vs. within vs. transform

When you first learnt about data frames in R, I’m sure that, like me, you thought “This is a lot of hassle having to type the names of data frames over and over in order to access each column”. library(MASS) anorexia$wtDiff <- anorexia$Postwt - anorexia$Prewt #I have to type anorexia how many times? Indeed, any

## Another Use of LSPM in Tactical Portfolio Allocation

## Rcpp Workshop slides

Dirk and I gave a full day Rcpp workshop yesterday in Chicago before the R in Finance conference. The pdfs of the slides are available here: part 1 (intro), part 2 (details), part 3 (modules) and part 4 (applications)

## Rcpp Workshop slides

Dirk and I gave a full day Rcpp workshop yesterday in Chicago before the R in Finance conference. The pdfs of the slides are available here: part 1 (intro), part 2 (details), part 3 (modules) and part 4 (applications)