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
################# | |
#This is a very rough script to pull COVID-19 geospatial data from the VDH feature service. | |
# 2020-04-22 | |
################# | |
library(dplyr) | |
library(esri2sf) | |
library(sf) | |
library(geojsonsf) | |
library(lubridate) |
All rules and guidelines in this document apply to HTML files.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Icon Legend:
·
Space, ⇥
Tab, ↵
Enter/Return
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from lxml import html | |
import requests | |
import json | |
virginia_nursing_facility_uris = ['https://www.vhi.org/Albemarle Health & Rehabilitation Center.html?tab=&?=nh1006/', 'https://www.vhi.org/Augusta Health - LTCU.html?tab=&?=nh6750/', 'https://www.vhi.org/Augusta Nursing and Rehabilitation Center.html?tab=&?=nh1551/', 'https://www.vhi.org/Autumn Care of Madison.html?tab=&?=nh2764/', 'https://www.vhi.org/Bowling Green Health & Rehabilitation Center.html?tab=&?=nh5611/', 'https://www.vhi.org/Bridgewater Home, Inc..html?tab=&?=nh8145/', 'https://www.vhi.org/Brookside Rehabilitation and Nursing Center.html?tab=&?=nh6181/', 'https://www.vhi.org/Carriage Hill Health & Rehab Center.html?tab=&?=nh1614/', 'https://www.vhi.org/Cedars Health & Rehab Center.html?tab=&?=nh2133/', 'https://www.vhi.org/Charlottesville Health & Rehabilitation Center.html?tab=&?=nh5100/', 'https://www.vhi.org/Consulate Health Care of Woodstock.html?tab=&?=nh2955/', 'https://www.vhi.org/Culpeper Health & Rehabilitation Center.html?tab=&?=nh8948 |
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
function topKey(keys, chords) { | |
var counts = {}, | |
result = []; | |
_(keys).each(function(values, key, list) { | |
counts[key] = _(values).chain().intersection(this.chords).size().value() | |
}, { | |
chords: chords | |
}); | |
var max = _(counts).max(); | |
return _(counts).each(function(value, key, list) { |