Convert R data.frame to a json array (source)
I have this data.frame in R: dataset <- data.frame( product = c('2012', '2013', '2014', '2015', '2016', '2017'), MilkTea = c(56.5, 82.1, 88.7, 70.1, 53.4, 85.1), MatchaLatte = c(51.1, 51.4, 55.1, 53.3, 73.8, 68.7), CheeseCocoa = c(40.1, 62.2, 69.5, 36.4, 45.2,…