Analyzing Behavioral Data in R
From Ucsbgalaxy
It is possible to import data directly from google docs into R.
- First, publish the page on google docs.
- Go to the file menu, and select "Publish to the Web"
- Hit the button Start Publishing
- Select CSV below
- Copy the link that is generated
- In R, use the following, replacing your url with the one in the 2nd R command
require(RCurl) myCsv <- getURL("https://docs.google.com/spreadsheet/pub?key=0AkJuO1gYG12tdGJvckxnNWt2dVBYYmE4cXA4RjAwa0E&single=true&gid=0&output=csv") read.csv(textConnection(myCsv))