[問題類型]:
入門(寫過其他程式,只是對語法不熟悉)
[問題敘述]:
於Rstudio環境下,執行程式範例中的語法出現下列警告,請問可以怎麼排除問題?
Warning message:
3008.TW contains missing values. Some functions will not work if objects
contain missing values in the middle of the series. Consider using na.omit(),
na.approx(), na.fill(), etc to remove or replace them.
[程式範例]:
install.packages("quantmod")
require("quantmod")
library(quantmod)
tw3008=getSymbols("3008.TW",from = "2010-01-01",to = Sys.Date())
[環境敘述]:
Rstudio windows 7