Merge new row into an existing xts ( purpose: to add current stock quote to historical object from quantmod)
问题 What I like to do is to get and attach current stock price to an historical xts object. example, require(quantmod) x=getSymbols("AAPL", from = "2014-10-27" ,auto.assign=FALSE) q = getQuote('AAPL') # this produces, > tail(x) AAPL.Open AAPL.High AAPL.Low AAPL.Close AAPL.Volume AAPL.Adjusted 2015-05-06 126.56 126.75 123.36 125.01 72141000 124.49 2015-05-07 124.77 126.08 124.02 125.26 43940900 125.26 2015-05-08 126.68 127.62 126.11 127.62 55550400 127.62 2015-05-11 127.39 127.56 125.63 126.32