Re: [R] R: Help xts object Subset Date by Day of the Week

2012-08-06 Thread R. Michael Weylandt
On Mon, Aug 6, 2012 at 4:30 PM, R. Michael Weylandt wrote: > On Sun, Aug 5, 2012 at 4:49 PM, Douglas Karabasz > wrote: >> I have a xts object made of daily closing prices I have acquired using >> quantmod. >> >> >> >> Here is my code: >> >> library(xts) >> >> library(quantmod) >> >> library(lubri

Re: [R] R: Help xts object Subset Date by Day of the Week

2012-08-06 Thread R. Michael Weylandt
On Sun, Aug 5, 2012 at 4:49 PM, Douglas Karabasz wrote: > I have a xts object made of daily closing prices I have acquired using > quantmod. > > > > Here is my code: > > library(xts) > > library(quantmod) > > library(lubridate) > > > > # Gets SPY data > > getSymbols("SPY") > > # Subset Prices to j

[R] R: Help xts object Subset Date by Day of the Week

2012-08-05 Thread Douglas Karabasz
I have a xts object made of daily closing prices I have acquired using quantmod. Here is my code: library(xts) library(quantmod) library(lubridate) # Gets SPY data getSymbols("SPY") # Subset Prices to just closing price SP500 <- Cl(SPY) # Show day of the week for each date using 2-6