- 已编辑
了解,奇怪的是我把名稱補回去源数据後,還是得到一樣的錯誤
Time,Mkt_RF,SMB,HML,RF
192607,2.96,-2.3,-2.87,0.22
192608,2.64,-1.4,4.19,0.25
192609,0.36,-1.32,0.01,0.23
192610,-3.24,0.04,0.51,0.32
192611,2.53,-0.2,-0.35,0.31
data <-
read.csv(
"C:/Users/Yoga/Desktop/F-F_Research_Data_Factors.csv",
header = T,
colClasses = c("character", rep("numeric", 4))
)
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : scan() 需要 'a real',而不是 'Mkt-RF'
好崩潰阿,這到底是怎麼回事