Skip to content

Instantly share code, notes, and snippets.

@erdavis1
erdavis1 / RoadLength
Created July 4, 2019 17:10
Road Length by Suffix
This file has been truncated, but you can view the full file.
GEOID,State,CountyName,Suffix,Len (meters)
01001,Alabama,Autauga County,NA,950779.5849
01001,Alabama,Autauga County,Aly,224.7535255
01001,Alabama,Autauga County,Ave,13493.13677
01001,Alabama,Autauga County,Blvd,7228.355573
01001,Alabama,Autauga County,Cir,10225.44919
01001,Alabama,Autauga County,Cmn,137.7920159
01001,Alabama,Autauga County,Co Rd,925888.9013
01001,Alabama,Autauga County,Ct,28128.11891
01001,Alabama,Autauga County,Cutoff,307.6327319
@erdavis1
erdavis1 / waterfalls.csv
Created January 12, 2020 16:49
waterfalls from OpenStreetMap
osm_id name X Y
653800087 Brooks Falls -155.7915941 58.5549594
5726894122 Nanaue Falls (End of King's Trail) -155.609903 20.1044557
2400038173 Hi'ilawe Falls -155.5964072 20.0942316
7006225334 Hakalaoa Falls -155.5951971 20.0943699
2400038192 Ipuu Falls -155.5893806 20.0982371
2220267142 Poakana Falls -155.1907258 19.7058727
2220267333 Wailoa Falls -155.1663284 19.7081842
6579217645 -155.1615845 19.8562623
2933785623 -155.1576824 19.8759918
#run this once to install these packages. Once they're installed, you don't need to run it again
install.packages(c('sf', 'tidyverse', 'rworldmap', 'ggthemes'))
#load up the libraries. You need to do this once per session; when you close out R they'll be unloaded
library(sf)
library(tidyverse)
library(rworldmap)
library(ggthemes)
#----get a map of ireland----
We couldn’t find that file to show.
@erdavis1
erdavis1 / Processallbooks.R
Created May 21, 2020 19:32
Process all books code outline
library(reticulate)
library(cleanNLP)
library(dplyr)
library(stringr)
library(tidyr)
library(textstem)
setwd("C:/Users/Erin/Documents/DataViz/Adjectives/")
options(stringsAsFactors = FALSE)
@erdavis1
erdavis1 / SuffixDetails.csv
Last active June 23, 2020 05:46
Suffix Details
GEOID CountyName StateAbbrev MostCommon Total Rd Dr St Ln Co Rd Ave Ct Cir Way Pl Trl
01001 Autauga County AL Dr 1428 239 309 202 151 150 27 175 26 26 34 15
01003 Baldwin County AL Ln 6105 1176 973 545 1337 95 506 486 403 84 98 41
01005 Barbour County AL Rd 980 372 162 119 109 47 51 27 21 8 12 3
01007 Bibb County AL Rd 889 265 144 97 151 66 46 4 18 8 8 8
01009 Blount County AL Rd 1956 752 437 110 271 44 55 19 120 10 4 61
01011 Bullock County AL Rd 509 125 36 94 58 79 52 10 23 1 1 6
01013 Butler County AL Rd 985 429 86 180 98 69 37 17 18 3 1 8
01015 Calhoun County AL Dr 3296 676 679 648 351 26 380 72 118 55 67 51
01017 Chambers County AL Co Rd 1139 72 59 285 18 377 194 49 16 5 37 0
@erdavis1
erdavis1 / thumbs.csv
Created August 17, 2020 02:36
descriptions of thumbs
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
"","sent","title","auth","owner"
"1","“It’s sort of interesting when you think about it,” said Jane, glancing at the photo once before she flicked it off with her thumb.","BIG LITTLE LIES","Liane Moriarty","her"
"2","Beloved watched the work her thumbs were doing and must have loved what she saw because she leaned over and kissed the tenderness under Sethe’s chin.","Beloved ","Toni Morrison","her"
"3","She’s sitting on the floor with a terrified little girl… looks too old to still be sucking her thumb, but she’s sucking it for all she’s worth… This momma’s not fat at all.","BACK TO BLOOD","Tom Wolfe","her"
"4","She put her thumb against one of the locks and slid it.","Atonement","Ian McEwan","her"
"5","Maryanne could see the way the starched white crown of her habit bit into her forehead, pressing against her brows, and later would see when Sister pushed it back with her thumbs how the edge of it had turned her dark skin red.","At Weddings and Wakes ","Alice McDermott","her"
"6","Megan stands miserably next t
@erdavis1
erdavis1 / NBAscores.csv
Created January 27, 2021 23:24
NBA box scores
We can't make this file beautiful and searchable because it's too large.
"Team","Match Up","Game Date","Season","W/L","MIN","PTS","FGM","FGA","FG%","3PM","3PA","3P%","FTM","FTA","FT%","OREB","DREB","REB","AST","STL","BLK","TOV","PF","+/-","type"
"NYK","NYK @ UTA","01/26/2021","2020-21","L",240,94,36,83,43.4,10,27,37,12,17,70.6,9,35,44,15,6,4,12,21,-14,"Regular Season"
"UTA","UTA vs. NYK","01/26/2021","2020-21","W",240,108,37,92,40.2,15,48,31.3,19,22,86.4,17,36,53,24,6,5,6,14,14,"Regular Season"
"HOU","HOU vs. WAS","01/26/2021","2020-21","W",240,107,37,88,42,12,37,32.4,21,29,72.4,8,36,44,16,13,4,14,17,19,"Regular Season"
"WAS","WAS @ HOU","01/26/2021","2020-21","L",240,88,33,84,39.3,5,26,19.2,17,23,73.9,11,38,49,19,7,3,21,22,-19,"Regular Season"
"LAC","LAC @ ATL","01/26/2021","2020-21","L",240,99,36,89,40.4,8,26,30.8,19,22,86.4,13,33,46,23,11,4,12,19,-9,"Regular Season"
"ATL","ATL vs. LAC","01/26/2021","2020-21","W",240,108,37,80,46.3,10,26,38.5,24,25,96,9,37,46,20,7,9,14,17,9,"Regular Season"
"MIN","MIN @ GSW","01/25/2021","2020-21","L",240,108,39,94,41.5,8,24,33.3,22,25,88,16,31,
@erdavis1
erdavis1 / rpics.csv
Created June 6, 2021 00:31
Reddit Pics
We can't make this file beautiful and searchable because it's too large.
id,author,created_utc,title,full_link,url,person_detected,Category,upvote_ratio,score,num_comments
fmpgrs,97267,1584833460,We Can Do It! Art by /u/EpitaphGirlfriend conerted into into a window decal for our Covid Wing.,https://www.reddit.com/r/pics/comments/fmpgrs/we_can_do_it_art_by_uepitaphgirlfriend_conerted/,https://i.imgur.com/HAmRfxa.jpg,TRUE,NoPerson,1,2,0
j4j61h,129828,1601746369,My mask was boring. Then I realised I can't draw.,https://www.reddit.com/r/pics/comments/j4j61h/my_mask_was_boring_then_i_realised_i_cant_draw/,https://i.redd.it/qbf0qnjs0xq51.jpg,TRUE,NoPerson,0.55,2,0
fwnndz,191213,1586277323,Sun is drawing in the sea <U+0001F62E><U+0001F62E>,https://www.reddit.com/r/pics/comments/fwnndz/sun_is_drawing_in_the_sea/,https://i.redd.it/rvseu4tdbfr41.jpg,FALSE,NoPerson,0.69,37,7
hxmutn,212134,1595684299,A Pro-Mask Mural in India,https://www.reddit.com/r/pics/comments/hxmutn/a_promask_mural_in_india/,https://i.redd.it/6hicyavya0d51.png,TRUE,NoPerson,0.93,277,10
jmc2sx,3287263,1604271736,"Painted
@erdavis1
erdavis1 / allpubs.csv
Created May 5, 2019 19:03
Pubs of the British Isles
We can't make this file beautiful and searchable because it's too large.
ID,name,long,lat,region
1,'31 Market Place',-1.021284,53.429981,england
1,'The Commercial Hotel',-2.364444,53.752023,england
3,'The Park Inn ',-2.358299,53.747997,england
5,0 degrees North,-0.0309,53.560872,england
6,012 Bar And Grill,0.004034,51.544232,england
7,1 In 12 Club,-1.758029,53.794847,england
8,1 Step Social Limited,-1.633635044,54.81035995,england
9,1 Town Hall Square,-3.4474502,51.4620403,wales
10,100 Acre Catering Ltd,-1.838364,51.063689,england