看板 R_Language 關於我們 聯絡資訊
[軟體熟悉度]: 新手(沒寫過程式,R 是我的第一次) [問題敘述]: 想用r抓取KC=F的資料 [環境敘述]: getsymbols("CF=K",src=yahoo) 之後試過抓取別種原物料都可以 可是唯獨咖啡不行 下面執行欄位出現error 404 [關鍵字]: 選擇性,也許未來有用 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.217.145.67 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1503916513.A.335.html
andrew43: 有"CF=K"這種東西嗎?08/29 09:44
asdfrtg: 打錯了 是CK=F 咖啡價格08/29 17:53
※ 編輯: asdfrtg (49.217.145.67), 08/29/2017 17:55:01
andrew43: 你可以先到http://finance.yahoo.com確認它是否存在 08/29 18:10
asdfrtg: 在這裡 08/29 19:43
celestialgod: 所以他上面是KC=F@@ 08/29 20:29
asdfrtg: 我在rstudio上面打對..在這裡打錯@@ 打對還是出現error 4 08/29 21:15
asdfrtg: 04 08/29 21:15
andrew43: getSymbols("KC=F", src = "yahoo") 沒問題啊... 08/30 01:35
andrew43: 提醒你一下,R code一律要分大小寫,以及yahoo要加引號 08/30 01:36