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 Generate Data Dictionary Table | |
#' | |
#' @param table character table name | |
#' @param schema character schema name | |
#' @param db | |
#' @param con database connection object | |
#' @param ... | |
#' |
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
# load required packages | |
library(sf) | |
library(foreign) | |
library(dplyr) | |
library(ggplot2) | |
# COVID-19 data source | |
# 31 Mar 2020 https://app.powerbi.com/view?r=eyJrIjoiODBmMmE3NWQtZWNlNC00OWRkLTk1NjYtMjM2YTY1MjI2NzdjIiwidCI6ImMwZTA2MDFmLTBmYWMtNDQ5Yy05Yzg4LWExMDRjNGViOWYyOCJ9 | |
cov <- tibble::tribble( ~ LGA_NAME, ~ Cases, | |
"ALPINE SHIRE", 0, |
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: "Untitled" | |
output: | |
rmarkdown::github_document: | |
html_preview: true | |
html_document: default | |
pdf_document: default | |
always_allow_html: yes | |
--- |
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: "Industry Area" | |
description: "industrial estates" | |
author: | |
- name: Jane Doe | |
url: http://localhost:9999/index.html | |
date: August 10 2018 | |
client: | |
- 'John Doe' | |
categories: |
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
library(dplyr) | |
library(purrr) | |
library(ggplot2) | |
library(gganimate) | |
# setup variables | |
A1 <- 0 | |
A2 <- 1 | |
A3 <- 0 | |
A4 <- 2 |
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
library(dplyr) | |
library(sf) | |
library(ggplot2) | |
library(gganimate) | |
shp <- st_read('shp','Crashes_Last_Five_Years') %>% | |
filter(ALCOHOL_RE == 'Yes') %>% | |
mutate(date = as.Date(as.character(ACCIDENT_D), '%d/%m/%Y')) | |
vic <- st_read('shp', 'VIC_STATE_POLYGON_shp') |
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
# script for running sharp GP2Y1010AU using micropython ESP32 controller | |
import machine, time | |
ao = machine.ADC(machine.Pin(36)) # analog read | |
led = machine.Pin(39) # this is not working | |
#led = machine.Pin(15, machine.Pin.OUT) | |
#mg/m3 but want ug/m3 | |
def get_dust(): |
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
import time | |
import serial, re, os | |
from datetime import datetime | |
from time import strftime | |
from influxdb import InfluxDBClient | |
import geohash | |
# Set this variables, influxDB should be localhost on Pi | |
host = "localhost" | |
port = 8086 |
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: "Widget Size Test" | |
output: | |
flexdashboard::flex_dashboard | |
--- | |
```{r setup, include=FALSE} | |
#devtools::install_github("mrjoh3/c3") |
NewerOlder