R Programming

Combine CSV files in RStudio in 5 Easy Steps

Combine CSV files in RStudio in 5 Easy Steps Unfortunately, with the latest update to RStudio, RWordPress has not yet been updated. In the meantime, manually posting RStudio code on how to easily combine two files in R in a few easy steps: Step 1:  Read in the first file, update the data types for
+ Read More

Forecasting Dengue Epidemics

Predicting the next Pandemic – Dengue

Predicting Dengue – DataDriven Competition Goal:  Predict Dengue outbreaks by the total number of cases by year and week for for two cities (Juan and Iquitos). Data:  U.S. Centers for Disease Control and prevention, the Department of Defense’s Naval Medical Research Unit 6 and the Armed Forces Health Surveillance Center, in collaboration with the Peruvian
+ Read More

R Ultimate Histogram

Histogram in R

Histogram in R After a lot of finessing, code in R for a really great Histogram   #load libraries library(ggplot2) library(formattable) library(scales) # font windowsFonts(Tahoma=windowsFont(“Tahoma”)) lengthselect <- flist_widget[flist_widget$length==10,] lengthselect summary(lengthselect) barfill <- “cyan3” barlines <- “#1F3552” meanprice <- mean(lengthselect$price) medianprice <- currency(median(lengthselect$price), digits=0L) sdprice <- currency(sd(lengthselect$price), digits=0L) rangeprice <- currency(range(lengthselect$price), digits=0L) minprice <- currency(min(lengthselect$price), digits=0L)
+ Read More

R Coding

R Coding

Coding in R A few snipits of code that are always useful: Finding which column has NA values: unlist(lapply(dataframe , function(x) any(is.na(x))))

Machine Learning

Machine Learning: Charity Donor Analysis

Machine Learning:  Charity Donor Analysis Introduction A charitable organization wishes to develop a machine learning model to improve the cost effectiveness of their direct marketing campaigns to previous donors. The recent mailing records reflect an overall 10% response rate with an average donation of $14.50. The cost to produce and send each mail is $2.
+ Read More

Text Analytics Sentiment Analysis

Text Analytics in R – Internet of Things (IoT)

Internet of Things (IoT) Text Analytics in R A small corpus of ten articles related to the Internet of Things (IoT) were collected for the purpose of text analytics.  Using R, each article was cleaned for unusual characters, changed to lower case,  removed numbers, punctuation, stop words, white space along with any additional terms that
+ Read More