This document provides some suggestions and resources for environmental engineers using R. This information is based on my own personal experience of learning and using R.
# Raspberry Pi Set Up Shell Script | |
# By Jeff Walker | |
# I created this to make it easier to re-install/re-configure my pi in case I need to start from scratch. | |
# Assumes Occidentalis v0.2 is being used. | |
# Run an update | |
# sudo apt-get update | |
# Adafruit WebIDE |
DATETIME | RTC_TEMP_C | TEMP_C | HUMIDITY_PCT | BATTERY_LEVEL | |
---|---|---|---|---|---|
2014-07-15 21:05:29 | 25.50 | 25.70 | 70.40 | 5.15 | |
2014-07-15 21:05:35 | 25.50 | 25.70 | 70.30 | 5.14 | |
2014-07-15 21:05:40 | 25.50 | 25.70 | 70.30 | 5.14 | |
2014-07-15 21:05:45 | 25.50 | 25.70 | 70.30 | 5.14 | |
2014-07-15 21:05:51 | 25.50 | 25.70 | 70.30 | 5.14 | |
2014-07-15 21:05:56 | 25.50 | 25.60 | 70.19 | 5.14 | |
2014-07-15 21:06:02 | 25.50 | 25.60 | 70.30 | 5.14 | |
2014-07-15 21:06:07 | 25.50 | 25.70 | 70.30 | 5.14 | |
2014-07-15 21:06:12 | 25.50 | 25.60 | 70.30 | 5.14 |
First try using http://blockbuilder.org, pretty sweet!
From Wikipedia:
Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.
forked from mbostock's block: Epicyclic Gearing
Used Block Builder to fork and make it go fast!
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.format - format percentages
- d3.scale.ordinal - x-position encoding
- d3.scale.linear - y-position encoding
- d3.max - compute domains
- d3.svg.axis - display axes
Built with blockbuilder.org
forked from walkerjeffd's block: timeseries-uncertainty
Built with blockbuilder.org
require(lubridate) | |
require(plyr) | |
require(ggplot2) | |
theme_set(theme_bw()) | |
# create random dataset | |
df <- data.frame(DATETIME = ymd("2000-01-01") + ddays(runif(100)*365*5)) | |
# compute day/month columns | |
df <- mutate(df, |
zoo.regular <- function(dates, values, by="hour", fill=NA) { | |
# convert time series to regular zoo object | |
require(zoo) | |
z <- zoo(values, dates) | |
z <- merge(z, zoo(, seq(floor_date(start(z), 'day'), | |
ceiling_date(end(z), 'day'), | |
by)), | |
fill=fill) | |
z <- z[1:(length(z)-1)] | |
return(z) |