This file contains hidden or 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
| P012030 | |
| P012031 | |
| P012032 | |
| P012033 | |
| P012034 | |
| P012035 | |
| P012036 | |
| P012037 | |
| P012038 |
This file contains hidden or 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
| http://harvester.census.gov/sac/dissem/accessoptions.html?submit=Go+To+Database |
This file contains hidden or 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[is.na(df)] <- 0 |
This file contains hidden or 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
| UPDATE poly_table SET count_col = (SELECT count(*) FROM points_table WHERE ST_Intersects(points_table.the_geom, poly_table.the_geom)) |
This file contains hidden or 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
| var geoCode = function(address){ | |
| geocoder.geocode( { 'address': address}, function(results, status) { | |
| if (status == google.maps.GeocoderStatus.OK) { | |
| var lat = results[0].geometry.location.lat(); | |
| var lng = results[0].geometry.location.lng(); | |
| var latLng = new L.LatLng(lat, lng); | |
| map.panTo(latLng); | |
| // Set the zoom to whatever you want. | |
| // the higher the number the greater the zoom. | |
| map.setZoom(8); |
This file contains hidden or 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
| I hear that your strings are factors | |
| FALSE | |
| csv soundsystem bookclub | |
| read.csv() | |
| csv soundsystem publishing house | |
| write.csv() |
This file contains hidden or 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
| apply(df[,c("col1","col2")], 1, sum) |
This file contains hidden or 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
| via @andrewxhill | |
| #your_table_name::text_style { | |
| text-face-name:"DejaVu Sans Book"; | |
| text-name:"[name]"; | |
| text-fill:#FFF; | |
| text-halo-fill:rgba(0,0,0,0.5); | |
| text-halo-radius:1; | |
| text-size:11; | |
| text-allow-overlap: false; |
This file contains hidden or 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 function takes an input numeric vector and | |
| # partitions it into a set number of breaks | |
| # it then assigns a color to each break via RColorBrewer | |
| assignColors <- function(var, | |
| n = 9, # number of colors / breaks | |
| style = "jenks", # can be changed to other methods in "classIntervals" | |
| pal = "RdYlBu", # Palettes from RColorBrewer | |
| na_color ='#787878', # Color to give NA's | |
| na_omit = FALSE, # Logical, argument above will be irrelevant if TRUE |
This file contains hidden or 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
| UPDATE counties_results o SET pres_dem_pct = n.pres_dem_pct, pres_gop_pct = n.pres_gop_pct, | |
| pres_oth_pct = n.pres_oth_pct, pres_pctrpt = n.pres_pctrpt | |
| FROM ( VALUES | |
| (48.51, 39.69, 11.8, 100, 'AK', '02000'), | |
| (51.65, 41.67, 6.68, 100 , 'AL' , '01001' ), | |
| (52.14, 42.4, 5.46, 100 , 'AL' , '01003' ), | |
| (51.94, 42.24, 5.82, 100 , 'AL' , '01005' ), | |
| (60.28, 34.95, 4.76, 100 , 'AL' , '01007' ), | |
| (53.19, 42.04, 4.77, 100 , 'AL' , '01009' ), | |
| (45.07, 50.85, 4.08, 100 , 'AL' , '01011' ), |