[问题类型]:
入门(写过其他程式,只是对语法不熟悉)
[问题叙述]:
于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