From f769200052beb6fed30f1d4e1c718b724b6d0699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Esteba=20Serra?= Date: Tue, 12 Apr 2022 13:06:47 +0200 Subject: [PATCH] Update app.R I propose this change since the program has some bugs due to recent updates of some libraries. --- shiny/003-play-golf/app.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiny/003-play-golf/app.R b/shiny/003-play-golf/app.R index 3715ade..e0ffb42 100644 --- a/shiny/003-play-golf/app.R +++ b/shiny/003-play-golf/app.R @@ -13,7 +13,7 @@ library(RCurl) library(randomForest) # Read data -weather <- read.csv(text = getURL("https://raw.githubusercontent.com/dataprofessor/data/master/weather-weka.csv") ) +weather <- read.csv("https://raw.githubusercontent.com/dataprofessor/data/master/weather-weka.csv", stringsAsFactors = T) # Build model model <- randomForest(play ~ ., data = weather, ntree = 500, mtry = 4, importance = TRUE)