ghing / r-data-cheatsheet

Notebooks that describe tasks that I use when working with data for journalism in R but don't do often enough to remember off the top of my head.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R data cheatsheet

These are notebooks that describe tasks that I use when working with data for journalism in R but don't do often enough to remember off the top of my head.

These are mostly recipes for things that took me a bit of time to Google or for which I didn't know the right language.

Fundamentals

Inspecting data

Listing data variables and types

Use str:

str(mydata)

Source: Quick-R: Viewing Data

Finding data

Importing data

Selecting and filtering data

Transforming data

Testing

RStudio

I do most of my work with R using RStudio. These are some helpful tips I've learned about working in that environment.

Vim keybindings

You can change the keyboard shortcuts in RStudio to mimic that of the vim editor (and a few other editors).

Source: Customizing RStudio.

Other resources

About

Notebooks that describe tasks that I use when working with data for journalism in R but don't do often enough to remember off the top of my head.


Languages

Language:HTML 100.0%