Skip to content

Instantly share code, notes, and snippets.

Ajay Pillarisetti ajaypillarisetti

  • Berkeley, CA
Block or report user

Report or block ajaypillarisetti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GBD_scrape_all_risk.R
library(data.table)
library(httr)
library(plyr)
library(tools)
#get data from web - don't run every time!
urls <- read.table('GBD_links.txt')
urls <- as.data.table(urls)
urls <- grep("http", urls$V1, value=T)
@ajaypillarisetti
ajaypillarisetti / 2013_GBD_Country_Lists.txt
Created Apr 20, 2016
2013 GBD Country Lists URLs - 2013 Global Burden of DIsease Download URLs
View 2013_GBD_Country_Lists.txt
Global
http://s3.healthdata.org/gbd2013results/IHME-Data-Global-Deaths.zip
http://s3.healthdata.org/gbd2013results/IHME-Data-Global-DALYs.zip
http://s3.healthdata.org/gbd2013results/IHME-Data-Global-YLDs.zip
http://s3.healthdata.org/gbd2013results/IHME-Data-Global-YLLs.zip
Developing
http://s3.healthdata.org/gbd2013results/IHME-Data-Developing-Deaths.zip
http://s3.healthdata.org/gbd2013results/IHME-Data-Developing-DALYs.zip
http://s3.healthdata.org/gbd2013results/IHME-Data-Developing-YLDs.zip
View keybase.md

Keybase proof

I hereby claim:

  • I am ajaypillarisetti on github.
  • I am ajayp (https://keybase.io/ajayp) on keybase.
  • I have a public key whose fingerprint is CC9D 2311 287F EF61 7A20 D998 FE9F BDD1 C327 F67E

To claim this, I am signing this object:

@ajaypillarisetti
ajaypillarisetti / GBDdownload.R
Last active Nov 21, 2016
Download and save all Global Burden of Disease data from IHME as compressed RDS or raw CSV files. Accounts for some countries with different URLs. Updated 4/8/2015 to make downloads more flexible.
View GBDdownload.R
library(data.table)
library(plyr)
library(httr)
library(reshape2)
#specify the location to save download files
#pathToGBDDataStore <- "c:/path/to/main/dir"
pathToGBDDataStore <-'~/Desktop/gbd'
@ajaypillarisetti
ajaypillarisetti / global.R
Last active Dec 23, 2015
shiny matrixinput - no character input
View global.R
#globals
scenarios <- read.csv('scenarios.csv',stringsAsFactors=F)[1:4,]
@ajaypillarisetti
ajaypillarisetti / SUMS_Cleaner.R
Created Aug 19, 2013
A routine to clean single iButton files. Focuses mainly on iButtons used as Stove Use Monitors (SUMS), but may be otherwise useful. Tested with 1921G, 1922T, and 1922L. 1922E testing ongoing. Does not properly process hygrocron iButtons at this time. Work in progress!
View SUMS_Cleaner.R
require(plyr)
require(lubridate)
#############################################################
# this is a combined routine to
# 1. resolve different date-time formats between files
# 2. convert F to C
# 3. export as RDS, CSV, or both (TSDB forthcoming)
# 4. create and update an error log
# It can toss all values in 1 file after a negative temp;
# that option is flaggable in the function.
You can’t perform that action at this time.