apply() yourself in R

by on November 14, 2016

A few months ago I wrote what I thought was a quite useful post on list comprehensions in R, which, after working with numerous datasets since, I have realized is almost useless. In the post, I suggested a few ways to go about generating vectors of data using non-vectorized functions. Packages such as foreach, plyr, […]

Holes in ggplot polygons

by on July 13, 2016

As part of my efforts to construct an R package connecting ggplot and Spatial objects, I came across an issue with ggplot involving holes in polygons. According to the collective knowledge of StackOverflow, it’s possible to make this happen by putting the coordinates in the correct clockwise/counterclockwise order, extending geom_polygon() somehow, or other really complicated […]

The missing list comprehensions in R

by on March 13, 2016

The first problem I had with making the move to R from Python was the lack of the list comprehension, which in python lets you easily create new vectors (well, lists, because it’s Python) by evaluating a function. In R this is mostly taken care of because all the base functions (and most package functions) […]

DFLite: The Quick & Easy Python DataFrame

by on March 10, 2016

The data frame was a concept I first came across in R, where it is a fundemental component of data analysis. Never having done much data analysis in Python, I came across a situation where I needed a data frame but didn’t know about the pandas implementation, so I went about writing my own DataFrame […]

Open Street Map Metadata in R

by on January 23, 2016

The Open Street Map project is an incredible resource for those interested in accessing worldwide geographic data, which is often as good or better than that provided by Google Maps. In addition to providing pre-rendered tiles that are acessible on the web, in R, or in QGIS, Open Street map provides access to the raw […]

EXIF in R

by on December 13, 2015

Recently I was tasked with organizing a large number of geotagged images extracted from several years of field data. The photos came from a GPS with a camera, but because there were tons of duplicate files, any GPS waypoints they were associated with were lost. Enter EXIF data, the format in which date/time, GPS, resolution, […]

WP Facebook Like Send & Open Graph Meta powered by TutsKid.com.