Author name: TheDataMonk

I am the Co-Founder of The Data Monk. I have a total of 6+ years of analytics experience 3+ years at Mu Sigma 2 years at OYO 1 year and counting at The Data Monk I am an active trader and a logically sarcastic idiot :)

Interview Questions, R

Janta Hack – Analytics Vidhya R code

install.packages(“stringr”)library(stringr) data = read.csv(“C:/Users/User/Desktop/Hackathon/JantaHack/train.csv”)head(data)str(data) data$product <- str_count(data$ProductList,”;”)+1head(data)data$hours <- with(data, difftime(endTime,startTime,units=”hours”) )data$min <- with(data, difftime(endTime,startTime,units=”mins”) )data$x <- as.double(data$endTime – data$startTime, units

Scroll to Top