Skip to content

Instantly share code, notes, and snippets.

View bwv988's full-sized avatar
💭
🔥

Ralph Schlosser bwv988

💭
🔥
View GitHub Profile
@bwv988
bwv988 / h2o_sol.R
Created July 25, 2017 14:49
Data Manipulation in H20
# Data manipulation with H2O
# RS25072017
require(h2o)
h2o.init()
# 1. The R way. ---------------------
@bwv988
bwv988 / h2o_query.R
Created July 24, 2017 23:58
Question on treating "NA" values in H2O
# Question on treating "NA" values.
# RS25072017
# PROBLEM STATEMENT: Remove the "?" values in the data set, and turn them into "n". ---------------------
require(h2o)
# Modify below, as needed.
h2o.init(startH2O = FALSE)
@bwv988
bwv988 / gist:f01b7553941ec5192b8f2dd9eeb24cc3
Last active January 3, 2017 11:48
Recursive git pull
find . -maxdepth 1 -type d -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
# XML package demo.
# Create barplot of distribution of first letters
# in the Mondial database.
# RS15082015
library(XML)
library(ggplot2)
# Load data.
xml <- xmlTreeParse("~/Temp/mondial-3.0.xml", useInternalNodes = TRUE)