Publications by Sarah Cohen

GIJC Walkthrough

02.11.2021

Introductory material This document is a walkthrough on how to import data from Johns Hopkins University’s COVID tracking project and put it into R for processing. We’ll clean it up, do some calculations and filtering, and then chart it as part of this tutorial. This document is called a “R Markdown” document. It combines your code, your ...

15090 sym R (5789 sym/18 pcs) 2 img 4 tbl

Cronkite School cheat sheet

16.10.2021

Cronkite R Cheat Sheet The Verbs This verb Does this Example Notes arrange sorts or orders the by the columns listed arrange ( last_name, first_name) use arrange (desc (col name) ) to go from highest to lowest select Picks out columns to use in this chunk select ( newname=last_name, first_name, salary) select (1:3) to get the first three col...

6723 sym R (1078 sym/11 pcs) 1 tbl

Arizona PPP loans

27.09.2021

This markdown gives you instructions for importing and understanding the PPP data for your mini-memo. There are other background documents and example stories in the Canvas module that you can also review. Download the data To load the data into your Global Environment add this line to a code chunk: data_url <- "https://github.com/cronkiteda...

8027 sym R (132 sym/1 pcs) 1 tbl

Replication template

27.10.2021

Introduction In this notebook, we are reverse engineering a story. Replace this text with the story you are replicating, with links to the story and the data you are going to use. Load and Cleaning Data In this block of text, include a data dictionary for the data you will use. You can create a table in markdown using this pattern: column name ...

5237 sym R (295 sym/4 pcs) 1 tbl

Styling your markdowns

10.11.2021

Code Show All Code Hide All Code Download Rmd Stylin’ your markdowns Stylin’ your markdowns Styling a Markdown document Picking themes Theme options After installation The setup chunk Styling tables Pretty tables Why formatted numbers matter Table packages Ranking and sorting Summarizing the data Lender ranks gt table How bi...

26210 sym R (6111 sym/10 pcs) 1 img 1 tbl

My first markdown

21.01.2022

The title above will be rendered as a first-level header, so always start with the a sub-head: About me Here are three things you might not know about me: Before I came to Cronkite, I’d never lived farther west than Western New York. I saw the Talking Heads play “Psycho Killer” at CBGB. (The drinking age was 18 then) The only sport I ever...

3240 sym R (115 sym/3 pcs) 1 img