0
嗨我想從網址導入數據:https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data但它總是作爲單行導入它。我通過「\ t」分割數據,但它仍然不起作用。我的R碼;R導入.data文件擴展名
bostonHousing <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data",
col.names= c("CRIM","ZN","INDUS","CHAS","NOX","RM","AGE","DIS","RAD","TAX","PTRATIO","B","LSTAT","MEDV"),
dec=",",sep = "\t")