5235 search results for "git"

A Delicious Analysis! (aka topic modelling using recipes)

February 17, 2014
By
A Delicious Analysis! (aka topic modelling using recipes)

A few months ago, I saw a link on twitter to an awesome graph charting the similarities of different foods based on their flavour compounds, in addition to their prevalence in recipes (see the whole study, The Flavor Network and the … Continue reading →

Read more »

Changed and new things in the new version of rgbif, v0.5

February 17, 2014
By

rgbif is an R package to search and retrieve data from the Global Biodiverity Information Facilty (GBIF). rgbif wraps R code around the to allow you to talk to GBIF from R. We just pushed a new verion of rgbif to cran - v0.5.0. Source and binary files are now available on CRAN. There are...

Read more »

demodulating time series

February 17, 2014
By
demodulating time series

This posting shows how one might perform demodulation in R. It is assumed that readers are generally familiar tith the procedure. First, create some fake data, a carrier signal with period 10, modulated over a long timescale, and with phase drifting linearly over time. 1 2 3 4 5 6 7 8 9 10 period <- 10 fc <- 1/period fs <- 1 n...

Read more »

Probabilistic Momentum

February 16, 2014
By
Probabilistic Momentum

David Varadi has recently discussed an interesting strategy in the Are Simple Momentum Strategies Too Dumb? Introducing Probabilistic Momentum post. David also provided the Probabilistic Momentum Spreadsheet if you are interested in doing computations in Excel. Today I want to show how you can test such strategy using the Systematic Investor Toolbox: The Simple Momentum

Read more »

Publishing dynamic data on ocpu.io

February 16, 2014
By
Publishing dynamic data on ocpu.io

Suppose you would like to publish some data, for example to accompany a journal article. One way would be to put a CSV file on your website, and share the URL with your colleagues. However CSV has many limitations: it only works for tabular structures, has limited type safety (pretty much everything...

Read more »

Interactive charts with rCharts

February 15, 2014
By

I have a few upcoming presentations as a part of job interviews. To prepare for these interviews, I'm attempting to make my figures a bit more interactive within my presentations. The aim is to be able to limit any large cumbersome tables I would need to include in my presentations and replace them with interactive plots that can...

Read more »

Encrypt user’s password with md5 for you Shiny-app

February 14, 2014
By

In a previous blog, I post a simple authentication method for Shiny-app, and received several comments mainly concerning that I should encrypt user password. I agree, user’s password can be intercepted when it was transferring. To secure users’ personal information, I think we should consider both server and client sides. Your server could be hacked and...

Read more »

Googling errors

February 14, 2014
By
Googling errors

@roguelynn tweeted the other day: If attendees of this weekend’s intro to python workshop leave with one thing, it’ll be to Google your error messages first and foremost. I had just talked about the technique in my Tools for Reproducible Research course, and I had a few recent examples. Gtk-WARNING **: cannot open display: I

Read more »

ggplot Fit Line and Lattice Fit Line in R

February 13, 2014
By
ggplot Fit Line and Lattice Fit Line in R

Let's add a fit line to a scatterplot!Fit Line in Base GraphicsHere's how to do it in base graphics:ols <- lm(Temp ~ Solar.R, data = airquality)summary(ols)plot(Temp ~ Solar.R, data = airquality)abline(ols)Fit line in base graphics in RFit Line in...

Read more »

R: Animating 2D and 3D plots

February 13, 2014
By
R: Animating 2D and 3D plots

One great package in R is the animation made by Yihui Xie. And just for fun, we are going to explore that. Our aim is to create simple animated 2D and 3D plots. Here is the first one, 2D of courseThe code,It's a piece of cake right? The function we use...

Read more »