Skip to content

Instantly share code, notes, and snippets.

View tgh0831's full-sized avatar

Thomas Higginbotham tgh0831

  • San Antonio, TX
View GitHub Profile
@tgh0831
tgh0831 / read_opentsdb.r
Created February 22, 2017 21:02 — forked from danslimmon/read_opentsdb.r
Reads data from OpenTSDB into an R data frame.
# Loads data from OpenTSDB.
#
# `server.url`: The URL of the OpenTSDB server (e.g. 'http://tsdb.example.com')
# `metrics`: List of strings specifying the metrics to pull (e.g.
# c("avg:web.cpu.user{host=*}", "sum:web.requests{type=login}")
# )
# `start.dt`: How far to go back in the time series, in any format OpenTSDB
# (e.g. "4h-ago")
# `end.dt`: Where to end the results (defaults to now)
# `datify`: Whether to convert timestamps to POSIXlt objects (defaults to TRUE)
@tgh0831
tgh0831 / dixondates.R
Created October 26, 2016 14:38 — forked from noamross/dixondates.R
Using times and dates in R
#'% Using Dates and Times in R
#'% Bonnie Dixon
#'% 14-02-10 15:09:57
#'
#' *Today at the [Davis R Users'
#' Group](http://www.noamross.net/davis-r-users-group.html), [Bonnie
#' Dixon](http://ffhi.ucdavis.edu/people/directory/bmdixon) gave a tutorial on the
#' various ways to handle dates and times in R. Bonnie provided this great script
#' which walks through essential classes, functions, and packages. Here it is piped through
#' `knitr::spin`. The original R script can be found as a gist
@tgh0831
tgh0831 / install ROracle on Windows.md
Created October 24, 2016 21:06 — forked from jgilfillan/install ROracle on Windows.md
Instructions on how to install ROracle for R on Windows.