Skip to content

Instantly share code, notes, and snippets.

View RMinto's full-sized avatar

Reid Minto RMinto

  • Electronic Arts (EA)
  • Austin, Tx
View GitHub Profile
@RMinto
RMinto / helpers.r
Last active August 29, 2015 14:09
helper r functions
qtiles <- function(x) {
quantile(x, probs = c(0.01, 0.25, 0.5, 0.75, 0.99), na.rm = TRUE)
}
@RMinto
RMinto / cleaning.r
Created January 30, 2015 20:17
cleaning
make.numeric <- function(data, x) {
for (i in x) {
data[ , i] <- as.numeric(data[ , i])
}
data
}
make.char <- function(data, x) {