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 is just a script to test the rhxl package, I just quickly looked at the data | |
# Ethiopia Who is doing What Where - 3W December 2017 | |
# source: https://data.humdata.org/dataset/3w-december-2017 | |
url <- "https://data.humdata.org/dataset/615416d2-457b-461a-8155-090f0ced0bf8/resource/f71bf111-8706-42f4-ba46-4ce3c8c949dc/download/3w_hxl.xlsx" | |
# load the rhxl package | |
# https://github.com/dirkschumacher/rhxl | |
library(rhxl) | |
download.file(url, "file.xlsx") |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Leaflet Vector Layers - ArcGIS Server Demo</title> | |
<meta name="description" content="Display vector data from ArcGIS Server, GeoIQ, Geocommons, Arc2Earth, CartoDB and others in a Leaflet map"> | |
<meta name="author" content="Jason Sanford"> | |
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | |
<!--[if lt IE 9]> |
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
/** | |
* Converts a value to a string appropriate for entry into a CSV table. E.g., a string value will be surrounded by quotes. | |
* @param {string|number|object} theValue | |
* @param {string} sDelimiter The string delimiter. Defaults to a double quote (") if omitted. | |
*/ | |
function toCsvValue(theValue, sDelimiter) { | |
var t = typeof (theValue), output; | |
if (typeof (sDelimiter) === "undefined" || sDelimiter === null) { | |
sDelimiter = '"'; |