Displaying 3 results from an estimated 3 matches for "seriesname".
2009 Jun 25
1
apply on xts
...on a function that returns an
xts (getIdvAdjSeries) it returns a matrix whose columns are just numeric
value of time series in xts instead of a list of xts objects.
Basically, I called the following:
apply(matrix(tickers,ncol=1),1,FUN=getDivAdjSeries)
getDivAdjSeries <- function(ticker) {
seriesName <- paste(ticker,"Adjusted",sep=".");
command <- parse(text=paste(ticker,"[,'",seriesName,"']",sep=""));
s <- eval(command);
dimnames(s)[[2]] <- ticker;
command <- parse(text=paste(ticker,"@index",sep=...
2009 Aug 31
1
how to add data to some ts
...a. Most tutorials are
about: "Download some S&P data from Yahoo and play around a little".
What I want to do is, add data to an existing timeseries. Is there a
possibility to add data ?
For example if I have something like
z <- ts(rnorm(10), start = c(1990, 1), frequency = 1)
seriesNames(z) <- "vec"
I want to add the next 10 years, like
z <- ts(rnorm(10), start = c(2000, 1), frequency = 1)
seriesNames(z) <- "vec"
If I use something TSreplace the new series starting at 2000 just
replaces the existing one instead of just adding another. Is there a...
2011 Jan 03
4
using "plot" with time series object - "axes = FALSE" option does not appear to work
...same plot but with the
y-axis for one series on the right side, and also inverted (min at the
top, max at the bottom). I believe that I see how to do this by using
par(new = TRUE) with a second plot statement with "axes = FALSE",
followed by the command "axis(side = 4, ylim = c(max(seriesname),
min(seriesname))".
Here is what I believe should be a smaller reproducible example of my issue:
#-----------------------------------------------------------------
library(quantmod)
getSymbols('PCECTPI', src='FRED')
is.xts(PCECTPI) # check the type of object - respons...