Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Sparks, John
Looks great. Thanks! --JJS From: Dirk Eddelbuettel on behalf of Dirk Eddelbuettel Sent: Sunday, March 4, 2018 9:41 PM To: Sparks, John Cc: Dirk Eddelbuettel; r-help@r-project.org Subject: Re: [R] Interpret List Label as Date from Quantmod getOptionChain

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Dirk Eddelbuettel
On 5 March 2018 at 03:13, Sparks, John wrote: | library(quantmod) | #in fairness, I did not include this last time and my example was therefore not reproducible. Apologies to Bert and everyone else #for not following the posting guidelines. | aapl_total<-getOptionChain("AAPL", NULL)> | | How c

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Sparks, John
2019? Guidance (that is not too burdensome) would be appreciated. --JJS From: Dirk Eddelbuettel on behalf of Dirk Eddelbuettel Sent: Sunday, March 4, 2018 8:57 PM To: Sparks, John Cc: Bert Gunter; r-help@r-project.org Subject: Re: [R] Interpret

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Dirk Eddelbuettel
On 5 March 2018 at 02:46, Sparks, John wrote: | I agree that they look like dates, I don't know how to determine if they are actually dates. You know options but you are confused about maturity dates, i.e. expiry? In information in that list (ie along the date dimension) is the expiry; at each

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Sparks, John
s the same with this one. --JJS From: Bert Gunter Sent: Sunday, March 4, 2018 8:38 PM To: Sparks, John Cc: r-help@r-project.org Subject: Re: [R] Interpret List Label as Date from Quantmod getOptionChain Package? The **names** of the top levels of your lists,

Re: [R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Bert Gunter
Package? The **names** of the top levels of your lists, "Mar.09.2018", "Mar.23.2018" certainly look like dates and if they are -- I have no idea what package/context is -- they certainly could be formatted as such. See e.g. "date-time" . There are also several package that provide date tools. Che

[R] Interpret List Label as Date from Quantmod getOptionChain

2018-03-04 Thread Sparks, John
Hi R Helpers, Is it possible to interpret the top level of the list as a date after downloading all the option chain data for a ticker? For example, after I run aapl_total<-getOptionChain("AAPL", NULL) the top descriptor of the lists is a date (Mar.09.2018, Mar.23.2018, etc.). So if want