We have dabbled with RevoScaleR before , In this exercise we will work with H2O , another high performance R library which can handle big data very effectively .It will be a series of exercises with increasing degree of difficulty . So Please do this in sequence . H2O requires you to have Java installed […]

## Big Data Analytics with H20 in R Exercises Part 1 Solution

Below are the solutions to these exercises on H2O ############### # # # Exercise 1 # # # ############### library(h2o) h2o.cluster <- h2o.init() ############### # # # Exercise 2 # # # ############### h2o.clusterInfo() ############### # # # Exercise 3 # # # ############### demo(h2o.glm) ############### # # # Exercise 4 # # # ############### […]

## Big Data analytics with RevoScaleR Exercises-2-Solutions

Below are the solutions to these exercises on RevoScaleR library(RevoScaleR) inFile <- "ccFraud.csv" inFilexdf <- "ccFraud.xdf" rxImport( inData = inFile, outFile = inFilexdf, overwrite = TRUE) ############### # # # Exercise 1 # # # ############### rxDataStep(airquality,outFile = "airquality.xdf",overwrite = TRUE) ############### # # # Exercise 2 # # # ############### rxLinePlot(balance~numTrans,inFilexdf,rowSelection = (numTrans >50 […]

## Big Data analytics with RevoScaleR Exercises-2

In the last set of exercises , you have seen the basic functionalities of RevoScaleR .In this exercise set we will explore RevoScaleR further. get the Credit card fraud data set from revolutionanalytics and lets get started Answers to the exercises are available here.Please check the documentation before starting these exercise set If you obtained […]

## Big Data Analytics with RevoScaleR solutions

Below are the solutions to these exercises on RevoScaleR library(RevoScaleR) ############### # # # Exercise 1 # # # ############### library(RevoScaleR) inFile <- "ccFraud.csv" inFilexdf <- "ccFraud.xdf" rxImport( inData = inFile, outFile = inFilexdf, overwrite = TRUE) ############### # # # Exercise 2 # # # ############### rxGetInfo(inFilexdf,getVarInfo = TRUE,numRows = 10) ############### # # […]

## Big Data analytics with RevoScaleR Exercises

In this set of exercise , you will explore how to handle bigdata with RevoscaleR package from Microsoft R (previously Revolution Analytics).It comes with Microsoft R client . You can get it from here . get the Credit card fraud data set from revolutionanalytics and lets get started Answers to the exercises are available here.Please […]

## More String Hacking with Regex and Rebus Solution

Below are the solutions to these exercises on string manipulation . library(stringi) library(stringr) library(rebus) ############### # # # Exercise 1 # # # ############### x <- c("stringer","stringi","rebus","redbus") stri_subset(x,regex = START %R% "st") ############### # # # Exercise 2 # # # ############### stri_subset(x,regex = "bus" %R% END) ############### # # # Exercise 3 # # […]

## More string Hacking with Regex and Rebus

For a begineer in R or any language,regular expression might seem like a daunting task . Rebus package in R gives a lowers the barrier for common regular expression tasks and is useful for a begineer or even for advanced users for most of the common regex skills in a more intuitive yet verbose way […]

## Hacking Strings with stringi Solutions

Below are the solutions to these exercises on stringi. library(stringi) ############### # # # Exercise 1 # # # ############### c1 <- "a quick brown fox jumps over a lazy dog" c2 <- "a quick brown fox jump over a lazy dog" stri_compare(c1,c2) c1 %s<=% c2 c1 %s>% c2 ############### # # # Exercise 2 […]

## Hacking Strings with stringi

In the last set of exercises, we worked on the basic concepts of string manipulation with stringr. In this one we will go further into hacking strings universe and learn how to use stringi package.Note that stringi acts as a backend of stringr but have many more useful string manipulation functions compared to stringr and […]