KTMJS Talk by @prabhasp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Foo</title> | |
<meta charset='utf-8' /> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' /> | |
<style type='text/css'> | |
body { | |
background:#000; | |
color:#fff; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="http://kevinburke.bitbucket.org/markdowncss/markdown.css" rel="stylesheet"> | |
Finding indicator dependencies | |
======================================================== | |
I had been meaning to look into R's metaprogramming features for a while now. I finally had a chance today (thanks [Hadley](http://adv-r.had.co.nz/)!), and I used it to experiment towards a problem that had been in the back of my mind for a while: finding depencies within indicator definitions. | |
Below, I implement a find dependencies function, which takes a set of indicators, and finds dependencies within it. Indicators are fields within a dataset, some of which are already there, and some of which are newly created. The dependency finding problem is investigating which new indicators derive from which existing ones. We think of these relationships as dependencies: for an indicator such as pupil-to-teacher-ratio (defined as the number-of-pupils divided by the number-of-teachers), pupil-to-teacher-ratio is dependent on number-of-pupils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_dk_reason <- function(df) { | |
dk <- names(df)[str_detect(names(df), "dont")] | |
llply(df[dk], function(x) { as.character(na.exclude(x)) }) | |
} | |
plot_percent_dks <- function(dk_list, N) { | |
# d will be a list of question name and length | |
d <- ldply(dk_list, length) | |
# order the data frame | |
d <- arrange(d, V1) | |
# divide by N (which is supposed to be total responses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nr | NAME OF THE PROJECT | AREA | IMPLEMENTATION START | IMPLEMENTATION END | ADDENDUMS | |
---|---|---|---|---|---|---|
1 | Find your polling Station (finished) | Social/Technology | 22/11/2010 | 02/03/2011 | ||
2 | OSM Handbook (finished) | Technology | 12/03/2010 | 31/03/2011 | ||
3 | Follow The Stars (finished) | Social/Arts/Culture | 02/01/2011 | 15/06/2011 | ||
4 | Our Virtual City on 3D (finished) | Technology | 02/02/2011 | 18/04/2011 | ||
5 | Our Eye (finished) | Education/Social | 03/03/2011 | 05/10/2011 | 15/12/2011 | |
6 | Say NO to plastic bags (finished) | Environment | 03/03/2011 | 30/05/2011 | ||
7 | Art Gallery for blind Artists (finished) | Social/Arts | 15/03/2011 | 15/04/2011 | ||
8 | E-career Guidelines | Education/Social | 28/03/2011 | 26/04/2012 | ||
9 | Recycle smART (finished) | Environment/Arts | 20/04/2011 | 07/04/2011 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title : Two tools for reproducible data work | |
subtitle : | |
author : Prabhas Pokharel, Modi Research Group | |
job : | |
framework : io2012 # {io2012, html5slides, shower, dzslides, ...} | |
highlighter : highlight.js # {highlight.js, prettify, highlight} | |
hitheme : tomorrow # | |
widgets : [] # {mathjax, quiz, bootstrap} | |
mode : selfcontained # {standalone, draft} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"source": "Education_113_ALL_FACILITY_INDICATORS.csv", | |
"target": "nmis_indicators_education_lga_level_113.R" | |
}, | |
{ | |
"source": "lgas.csv", | |
"target": "nmis_indicators_education_lga_level_113.R" | |
}, | |
{ |
NewerOlder