Built with blockbuilder.org
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
// This example data set (not provided) is over 100,000 records. The following code calculates 30-day moving | |
// averages (over 3 million aggregations) using Crossfilter and the Reductio helper library. It takes about | |
// 3 seconds for the initial aggregation in Chrome Canary (42.0.2291.0) on a 2.3 GHz Core i7, mid-2012 rMBP. | |
d3.csv('dataJan-29-2015.csv', function (data) { | |
//convert the iso timestamps to JS Dates | |
var parseDate = d3.time.format("%Y-%m-%dT%H:%M:%S").parse; | |
var ymd = d3.time.format("%Y-%m-%d"); | |
data.forEach(function(d) { |
I hereby claim:
- I am esjewett on github.
- I am esjewett (https://keybase.io/esjewett) on keybase.
- I have a public key ASDfTKLgwSyTB94Z33LIaxmxj0HRKty1PR2fz1rAXj_ZKwo
To claim this, I am signing this object:
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
{"version":"1.2.8","files":[{"url":"https://rawgit.com/bearloga/taskviewr/master/www/packages.csv","loadFromURL":true,"label":"R Packages by Task View","id":0,"autoFields":[],"fields":[{"key":"view","description":"view","cardinality":34,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":[],"unassignedSpecialChars":[],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:116"},{"key":"package","description":"package","cardinality":2665,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":[],"unassignedSpecialChars":[],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:117"},{"key":"title","description":"title","cardinality":2657,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":["-","/",",",":",";","_"],"unassignedSpecialChars":["-","/",",",":",";","_"],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:118"},{"key":"license","description":"license","cardinality":81,"type":"text","blanks |
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
df_full <- read.csv("~/git_repos/mig_analysis/usa_00006.csv", header=T) | |
# At what age to people migrate to/from each state? | |
age_state_of_migrate_to <- filter(df_full, MIGPLAC1 != 0 & MIGPLAC1 <= 56) %>% | |
mutate(edu = EDUCD == 101) %>% | |
group_by(AGE, STATEFIP, edu) %>% | |
summarise(to_count = n()) | |
age_state_of_migrate_from <- filter(df_full, MIGPLAC1 != 0 & MIGPLAC1 <= 56) %>% | |
mutate(edu = EDUCD == 101) %>% | |
group_by(AGE, MIGPLAC1, edu) %>% |
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
license: mit |
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
license: mit |
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
license: mit |
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
license: mit |
We can't make this file beautiful and searchable because it's too large.
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
City,Latitude,Longitude,State | |
Amchitka,51.56722,178.8775,AK | |
Sunik (historical),52.43333,173.6,AK | |
Attu,52.9375,173.2375,AK | |
Ugiatok (historical),52.41667,173.58333,AK | |
Siksatok (historical),52.43333,173.6,AK | |
Navy Town,52.84083,173.17556,AK | |
Ugtikun (historical),52.41667,173.58333,AK | |
Ugtumuk (historical),52.41667,173.58333,AK | |
Ukashik (historical),52.41667,173.58333,AK |
NewerOlder