Home

Here I will aggregate sources related to programming tutorials, gathering data through different mediums and processing that data. This page is under construction.

Code

Python

  • Udacity Tutorial
    • Excellent tutorial that Jon Cohen used for his cognitive psychology course.

Javascript

Gather Data

TwitteR

  • Twitter is an R package that allows you to collect tweets based on a number of parameters (key words, dates, etc).
  • I have a friend at UChicago who does text scraping on twitter and showed me the twitteR package, so I figured I would add some info on that here since it seems it could be useful in the future for questions related to social networks.
  • A different but similar package is rtweet

Mturk

 

Process Data

Qualtrics

  • If you collect data from Qualtrics but analyze in R, you will find that the format you download the data in from Qualtrics is not R friendly. I found this website that gives some great instructions to make the preprocessing of the data that is pretty simple.

Rmarkdown

  • I use Rmarkdown in Rstudio to create my analysis scripts in a reproducible way, and in a way that allows easy documentation into pdf or html form.
  • Links on how to use it. Cheat sheet. Documentation.
  • I realized that it is possible to write python code in Rmarkdown! Check the deets here. I have been making tutorials for the lab so this will come in very handy. I’m probably behind the times on this, but I figured I would share.

JSON

  • If you gather data on online databases, it’s possible it will come in JSON format, which is very not R friendly. However there are some ways to get around this.
  • R package: jsonlite, Link (I use this method)
  • R package: tidyjson, Link
  • R tutorials on hacking through the json data: LinkLink

Twitter

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s