Blog Archives

Introduction to dplyr: data manipulation made easy(er) and fun(er)

January 30, 2014
By
Introduction to dplyr: data manipulation made easy(er) and fun(er)

If you are just getting started in R, checkout my post on good references for beginners.  Hadly Wickham has come out with yet another R package that is destined to improve my workflow and let me concentrate less on getting R to do things, and more on my research questions. The package is dplyr, a reboot...

Read more »

faster for() loops in R

November 13, 2013
By

One of the most common ways people write for() loops is to create an empty results vector and then concatenate each result with the previous (and growing) results vector, like the following.  (Note: wrapping an expression in the function...

Read more »

Do the same thing to a bunch of variables with lapply()

April 19, 2013
By
Do the same thing to a bunch of variables with lapply()

It is extremely common to have a dataframe containing a bunch of variables, and to do the exact same thing to all of these variables. For instance, lets say we have a dataframe that has a bunch of limb bone measurements of different animals, and we wan...

Read more »

Top 6 reasons you need to be using RStudio

February 25, 2013
By
Top 6 reasons you need to be using RStudio

Rstudio provides you with tools to make your work more productive.New to R? -  check out these resources for getting staRted. RStudio is an awesome tool that can help you do your work better and faster.  In technical terms...

Read more »

Getting staRted with R.

February 7, 2013
By
Getting staRted with R.

As a PhD student and researcher, I often hear friends and colleagues say that they want to learn R, but that the learning curve is so steep that they can't seem to get started.  It's true that learning any tool as powerful as R can be confusing at...

Read more »

An R Book for the Rest of Us

October 16, 2012
By

R for Dummies is here!  Initial reviews are very positive for this book (I haven't gotten it yet).  I am very hopeful though, because the word on the street is that it doesn't assume you have any programming knowledge or much statistical know...

Read more »

Plot R Data With googleVis

September 30, 2012
By

Here is a little code snippet that shows how to do two things Use the Google Maps API to resolve place names into lat-long coordinate pairs. Plot R dataframes that contain lat-long data (for example from #1) onto Google Maps for quick visualization using the googleVis package.  The embedded map looks a little wonky here but it looks...

Read more »

Send emails with attachments from R command line

May 30, 2012
By

The sendmailR package makes it easy to send emails with attachments from the R command line.  #load packagelibrary("sendmailR")#use string formatting and your system info to format FROM address from <- sprintf("<Project1@%s>", Sys.info()[...

Read more »

Quickly Visualize Your Whole Dataset

May 16, 2012
By

(This article was first published on W. Andrew Barr's Paleoecology Blog, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: W. Andrew Barr's Paleoecology Blog. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave,...

Read more »

R is not just for nerds….it has drop-down menus!

April 20, 2012
By
R is not just for nerds….it has drop-down menus!

JGR LogoThis post introduces how to use the Java Gui for R (JGR, pronounced Jaguar) along with the Deducer package (manual here) to get a fairly full featured graphical user interface for R.InstallationNote: Be sure you are logged into an account with ...

Read more »