我有一個XTS數據集,其中包含許多股票收盤價,名爲:dataset。然後我想通過cor()找到他們的退貨是否有任何關聯,但是我收到一條錯誤消息:Error in cor(RETS) : 'x' must be numeric。 這裏是我做了什麼: RETS <- CalculateReturns(dataset, method= c("log")) # Calculate returns Via
我有很多data.frames(),我試圖通過RMySQL()發送到MySQL數據庫。 # Sends data frame to database without a problem
dbWriteTable(con3, name="SPY", value=SPY , append=T)
# stock1 contains a character vector of stock names