Skip to content

Instantly share code, notes, and snippets.

View technocrat's full-sized avatar

Richard Careaga technocrat

View GitHub Profile
Y Z_55 Z_56
1000 2201.3 2212.2
999 2204.7 2215.6
998 2201.3 2212.2
997 2204.7 2215.5
996 2201.3 2212.2
995 2204.6 2215.5
994 2201.3 2212.2
993 2204.6 2215.5
992 2201.3 2212.3
@technocrat
technocrat / nb.html
Created February 22, 2020 19:59
The output of an RStudio rmarkdown file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
@technocrat
technocrat / nb.Rmd
Created February 22, 2020 19:57
An RStudio rmarkdown file set for html_notebook output
---
title: "R Notebook"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*.
```{r}
@technocrat
technocrat / nb.Rmd
Created February 22, 2020 19:56
RStudio Rmd file with notebook output
---
title: "R Notebook"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*.
```{r}
@technocrat
technocrat / walcl_2019_PCH.csv
Created January 3, 2020 02:59
Federal Reserve Bank weekly percent change in assets: FRED
DATE WALCL_PCH
2018-12-26 -0.21149
2019-01-02 -0.42344
2019-01-09 -0.04472
2019-01-16 -0.16070
2019-01-23 -0.07388
2019-01-30 -0.18221
2019-02-06 -0.32993
2019-02-13 0.05168
2019-02-20 -1.16698
@technocrat
technocrat / sp500_2019_PHC.csv
Created January 3, 2020 02:57
SP500 week over week percentage changes for 2019 from FRED
DATE SP500_PCH
2019-01-02 2.97449
2019-01-09 1.59799
2019-01-16 2.46688
2019-01-23 1.69919
2019-01-30 0.37172
2019-02-06 2.50769
2019-02-13 0.12260
2019-02-20 1.73070
2019-02-27 0.66898
DATE SP500_PCH
2019-10-09 -0.88253
2019-10-16 1.68354
2019-10-23 0.88466
2019-10-30 1.09756
2019-11-06 1.17591
2019-11-13 0.76307
2019-11-20 0.75470
2019-11-27 0.47444
2019-12-04 -0.41944
@technocrat
technocrat / WALCL.csv
Created December 30, 2019 22:21
Federal Reserve Balance Sheet (https://fred.stlouisfed.org/series/WALCL)
DATE WALCL_PCH
2019-10-09 0.10452
2019-10-16 0.41813
2019-10-23 0.05620
2019-10-30 1.28815
2019-11-06 0.48808
2019-11-13 0.20891
2019-11-20 -0.43561
2019-11-27 0.56140
2019-12-04 0.31634
@technocrat
technocrat / movielens.csv
Created December 29, 2019 02:43
Extract from movielens dataset
genres ratings
Fantasy|Sci-Fi|Thriller 2221
Drama|Fantasy|Musical|Romance 156
Drama|Fantasy|Thriller 4011
Crime|Drama|Sci-Fi|Thriller 10730
Action|Adventure|Romance|War 6
Crime|Horror|Mystery 302
Drama|Fantasy|Horror 694
Adventure|Drama|Thriller|War 10
Action|Comedy|Crime|Romance 3310
@technocrat
technocrat / incidents.csv
Created December 16, 2019 20:42
Sample data from SFPD_Incident_Reports_2003_May2018.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 13 columns, instead of 2 in line 6.
IncidntNum,Category,Descript,DayOfWeek,Date,Time,PdDistrict,Resolution,Address,X,Y,Location,PdId
146196161,NON-CRIMINAL,LOST PROPERTY,Tuesday,09/23/2014,01:00,SOUTHERN,NONE,800 Block of BRYANT ST,-122.403404791479,37.775420706711,POINT (-122.403404791479 37.775420706711),14619616171000
150045675,ASSAULT,BATTERY,Thursday,01/15/2015,17:00,TARAVAL,NONE,1800 Block of VICENTE ST,-122.48560378101,37.7388214326705,POINT (-122.48560378101 37.7388214326705),15004567504134
140632022,SUSPICIOUS OCC,INVESTIGATIVE DETENTION,Wednesday,07/30/2014,09:32,BAYVIEW,NONE,100 Block of GILLETTE AV,-122.396535107224,37.7106603302503,POINT (-122.396535107224 37.7106603302503),14063202264085
150383259,ASSAULT,BATTERY,Saturday,05/02/2015,23:10,BAYVIEW,"ARREST, BOOKED",2400 Block of PHELPS ST,-122.400130573297,37.7300925390327,POINT (-122.400130573297 37.7300925390327),15038325904134
040753980,OTHER OFFENSES,RECKLESS DRIVING,Friday,07/02/2004,13:43,BAYVIEW,NONE,I-280 / CESAR CHAVEZ ST,-120.5,90,POINT (-120.5 90),4075398065020
040855122,