[問題] 儲存格問題 (網頁表格)

作者: vicror84 (阿汘)   2016-06-05 20:27:35
原網址:http://www.mmh.org.tw/health/image/exam_services/exam_services.html
R語言程式:
library(XML)
URL =
paste0("http://www.mmh.org.tw/health/image/exam_services/exam_services.html")
Sys.sleep(runif(1,1,2))
doc<-htmlParse(URL,encoding="UTF-8")
tables<-readHTMLTable(doc,header=F,which = 2)
tables
dim(tables)
有些資料原本在右邊,但爬出來後出現在左邊
作者: celestialgod (天)   2016-06-05 21:09:00
你前一個文章的網址表格也會這樣這個要自己手動處理就參考我的回文即可

Links booklink

Contact Us: admin [ a t ] ucptt.com