search for: spyxt

Displaying 7 results from an estimated 7 matches for "spyxt".

Did you mean: spyxts
2018 Jan 18
0
Split charts with ggplot2, tidyquant
Hi Charlie, I am comfortable to put the data in any way that works best. Here are two possibilities: an xts and a data frame. library(quantmod) quantmod::getSymbols("SPY") # creates xts variable SPY SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] SPYdf <- data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close), volume=as.numeric(SPYxts$SPY.Volume)) rownames(SPYdf) <- NULL head(SPYxts) head(SPYdf) # SPY.Close SPY.Volume #2007-01-03...
2018 Jan 18
3
Split charts with ggplot2, tidyquant
Could you provide some information on your data structure (e.g., are the two time series in separate columns in the data)? The solution is fairly straightforward once you have the data in the right structure. And I do not think tidyquant is necessary for what you want. Best, Charlie -- Charles Redmon GRA, Center for Research Methods and Data Analysis PhD Student, Department of Linguistics
2018 Jan 19
2
Split charts with ggplot2, tidyquant
...Charlie On 01/18/2018 02:11 PM, Eric Berger wrote: > Hi Charlie, > I am comfortable to put the data in any way that works best. Here are > two possibilities: an xts and a data frame. > > library(quantmod) > quantmod::getSymbols("SPY")? # creates xts variable SPY > SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] > SPYdf? <- > data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close), > ?volume=as.numeric(SPYxts$SPY.Volume)) > rownames(SPYdf) <- NULL > > head(SPYxts) > head(SPYdf) > > #? ? ? ? ? ?SPY.Close...
2018 Jan 19
0
Split charts with ggplot2, tidyquant
...M, Eric Berger wrote: > >> Hi Charlie, >> I am comfortable to put the data in any way that works best. Here are two >> possibilities: an xts and a data frame. >> >> library(quantmod) >> quantmod::getSymbols("SPY") # creates xts variable SPY >> SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] >> SPYdf <- data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Cl >> ose), >> volume=as.numeric(SPYxts$SPY.Volume)) >> rownames(SPYdf) <- NULL >> >> head(SPYxts) >> head(SPYdf) >...
2018 Jan 20
2
Split charts with ggplot2, tidyquant
...: > > Hi Charlie, > I am comfortable to put the data in any way that works best. > Here are two possibilities: an xts and a data frame. > > library(quantmod) > quantmod::getSymbols("SPY")? # creates xts variable SPY > SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] > SPYdf? <- > data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close), > ?volume=as.numeric(SPYxts$SPY.Volume)) > rownames(SPYdf) <- NULL > > head(SPYxts) >...
2018 Jan 20
0
Split charts with ggplot2, tidyquant
..., > > I am comfortable to put the data in any way that works best. > > Here are two possibilities: an xts and a data frame. > > > > library(quantmod) > > quantmod::getSymbols("SPY") # creates xts variable SPY > > SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] > > SPYdf <- > > data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY. > Close), > > volume=as.numeric(SPYxts$SPY.Volume)) > > rownames(SPYdf) <- NULL > > >...
2018 Jan 21
1
Split charts with ggplot2, tidyquant
...I am comfortable to put the data in any way that works best. > >? ? ? ? ?Here are two possibilities: an xts and a data frame. > > > >? ? ? ? ?library(quantmod) > >? ? ? ? ?quantmod::getSymbols("SPY")? # creates xts variable SPY > >? ? ? ? ?SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] > >? ? ? ? ?SPYdf? <- > >? ? ? ? > ?data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close), > >? ? ? ? ??volume=as.numeric(SPYxts$SPY.Volume)) > >? ? ? ? ?rownames(SPYdf) <- N...