Part 1: coastal applications
The oce package has a world coastline file that is visibly crude on a scale suitable for continental-shelf work. At the cost of about 1 Mbyte of storage, a candidate for a replacement is a 1:10million scale version downloaded from naturalearthdata.com (full link below).
As illustrated below with plots near two oceanographic centres, this candidate provides...
I drove through Tennessee today. Despite having grown up in Kentucky, I had never really noticed the Tennessee flag, but earlier this year, while in Nashville, I saw it and thought it was one of the cooler state flags. I downloaded a PNG file of the flag from wikicommons and tried to do what I
The sunAngle() function in the oce package provides a handy way to determine sunrise/sunset azimuth angles, and this is used to find alignments for the winter solstice in Halifax, NS.
First, set up the problem; these may be the only lines that need editing for other places or times.
t <- as.POSIXct("2013-12-21 17:11:00", tz="UTC") # winter solstice
xy <- list(x=-63.60, y=44.65) ...
There was an interesting post on a blog which showed how straightforward it is to use the text mining tools (tm) from R along with the wordcloud package to create Word Clouds. Following the example from this page I processed the text of the Golden Asse book (found at Project Guttenberg) to generate a word
by Joseph Rickert At a Bay Area R User Group (BARUG) meeting this month hosted by Cisco, Dag Lohmann (the co-founder of Katrisk) gave an electrifying talk on catastrophe modeling for the insurance industry. Catastrophes: cyclones, hurricanes, floods earthquakes, terrorist attacks are rare events (from a statistical point of view) that cause losses and human suffering over large geographic...
Looking at a graph displayed as part of a pdf document is so tantalizing; I want that data as a csv! One way to get the data is to email the author(s) and ask for it. I do this regularly and sometimes get the apologetic reply that the data is confidential. But I can see
Earlier this week, OpenCPU 1.2 was released. This release uses the new jsonlite package for JSON conversion, which puts in place the final fundamental piece of the OpenCPU framework. This post describes what has changed, why this is important, and how to upgrade.
From here, no major changes in the OpenCPU API...
In my previous post, I tried to answer the following question Consider points uniformly distributed on a sphere. What is the probability that the points lie on a same hemisphere, for some hemisphere (there is no south or north here) ? If I have been able to use Monte Carlo simulations in dimension 2 (on a circle, not on a sphere), I could...
I couldn't manage to find time yesterday, so today I'm going to try and catch up with two posts. In the first, I'm going to talk about a package I've been gradually working on over the course of the year. After all, what's Christmas if you don't get a package? I do quite a lot
A new version 0.3 of HistogramTools is now on CRAN. HistogramTools provides a number of methods for manipulating histograms, measuring the distance between histograms, calculating the information loss due to binning aggregate data sets, and other tool...