Dream to Learn is shutting down...

We are very sorry to say that Dream to Learn will be shutting down as of December 28th, 2019. If you have content that you wish to keep, you should make a copy of it before that date.


Fast Fourier Transform (FFT) / Spectral Analysis in R? -> aka plot(beer)

POSTED IN: Data Analytics & Visualization Blog


A couple of years ago I built an advance warning system for earthquakes using some arduinos and some very sensitive geophones provided by friends in the oil and gas sector (Alberta) - was a neat little set up that was VERY sensitive - with the intention of alerting when the P Wave hit, hopefully with some warning, before the S Secondary wave arrives (I live on Hayward Fault in SFO) - the delta P and S depends on how far away from epicenter the array is.

Anyway - long story short - I found a nice little piece of code to run on arduinos that did a tight little FFT that helped limit the false positives.

I'm curious how "R" will do with similar data - so going to try a few things from here:


Looks like TSA and FFT packages are a good place to start.


Update > FFT Package refused to install on my version or R 3.0.2, so trying TSA


Update 2 Below (this one is for you Dan and Jay)

So confirming what we already know - that people drink more beer in the hot summer ;) 

Interested in more content by this author?

About the Author

Ryan Anderson

Ryan Anderson

Hi! I like to play with data, analytics and hack around with robots and gadgets in my garage. Lately I've been learning about machine learning.

About this blog

Description is...<br/>Data Analytics & Visualization Blog - Generating insights from Data since 2013

Created: July 25, 2014


Up Next