Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

21 results for “from:James Hirschorn”

Long model formulae
James Hirschorn · Oct 23, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101023/0755e3db/attachment.pl>

Extracting from data.frame
James Hirschorn · Nov 14, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101114/e96704dc/attachment.pl>

extracting named vector from dataframe
James Hirschorn · Oct 31, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101031/2103526e/attachment.pl>

Is this foreach behaviour correct?
James Hirschorn · Nov 5, 2016 · r-help

This seemed odd so I wanted to check: > x <- foreach(i=10000:10100, .combine='c') %do% { as.Date(i) } yields a numeric vector for x: > class(x) [1] "numeric" Should it not be a vector of Date?

read columns of quoted numbers as factors
James Hirschorn · Oct 4, 2010 · r-help

Suppose I have a data file (possibly with a huge number of columns), where the columns with factors are coded as "1", "2", "3", etc ... The default behavior of read.table is to convert these columns to integer vectors. Is...

data.table exact matching numeric keys
James Hirschorn · May 26, 2016 · r-help

I have looked over the documentation and did not see an answer to this seemingly basic question: I noticed that if I have a data.table with a key containing numeric values, then a close number is considered a match...

Is this a bug in quantmod::OpCl?
James Hirschorn · Apr 5, 2016 · r-help

OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug? Example error: x.Date <- as.Date("2003-02-01") + c(1, 3, 7, 9, 14) - 1 set.seed(1) x <- zoo(matrix(runif(20, 0...

Long model formulae
James Hirschorn · Oct 24, 2010 · r-help

> > Here is a dodge I often use. This is a mock-up example. Very instructive (and helpful) ... > > _______________ > > bar <- data.frame(matrix(rnorm(1001), nrow = 1)) > names(bar)[1] <- "y" ## say > head(bar[,1:5]) > > nbar <- names(bar) > form <- as.formula...

Reduce does not work with data.table?
James Hirschorn · May 25, 2016 · r-help

Reduce is failing when applied to a list of elements of class data.table. Perhaps this is a bug? Example: library(data.table) dt1 <- data.table(x = 1:3, y = 4:6) dt2 <- data.table(x = 4:6, y = 1...

Quantstrat - running applyStrategy in a loop
James Hirschorn · Aug 19, 2018 · r-sig-finance

I plan to try it out myself, but I wanted to check here if running applyStrategy in a loop, while looping over different dates, will work? I could not find any examples of this. There are 2 reasons for wanting...

Quantstrat - extracting current symbol
James Hirschorn · Jul 31, 2018 · r-sig-finance

This issue has already been discussed in the thread https://stat.ethz.ch/pipermail/r-sig-finance/2017q2/014301.html, but leaves the question of how to access the symbol from the add.indicator indicator function (i.e. the name...

Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)
James Hirschorn · Apr 9, 2019 · r-sig-finance

I have read some bad things about CQFG and their "affiliate" QuantQuote. For example: https://github.com/michaelsmusing/sources-for-intraday-historical-stock-data It looks to me like AlphaVantage only has intraday stock data going back a couple of...

Is this foreach behaviour correct?
James Hirschorn · Nov 9, 2016 · r-help

Yes, I should have put > library(foreach) > library(zoo) at the top. On 11/06/2016 05:20 PM, Duncan Murdoch wrote: > On 06/11/2016 5:02 PM, Jim Lemon wrote: >> hi James, >> I think you have to have...

extracting named vector from dataframe
James Hirschorn · Oct 31, 2010 · r-help

Of course you are right that this would not be appropriate in general, but what I'm doing--which as Baptiste explained can be done much more nicely with unlist()---seems reasonable in my context: The dataframe has a computed...

Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)
James Hirschorn · Apr 5, 2019 · r-sig-finance

On Fri, Apr 5, 2019 at 5:53 AM Daniel Cegie?ka <daniel.cegielka at gmail.com> wrote: > pt., 5 kwi 2019 o 05:34 James Hirschorn > <james.hirschorn at quantitative-technologies.com> napisa?(a): > > > > I looked into IQFeed for...

Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)
James Hirschorn · Apr 8, 2019 · r-sig-finance

On Fri, Apr 5, 2019 at 6:07 PM James Hirschorn < james.hirschorn at quantitative-technologies.com> wrote: > > On Fri, Apr 5, 2019 at 5:53 AM Daniel Cegie?ka <daniel.cegielka at gmail.com> > wrote: > >> pt., 5 kwi 2019...

read columns of quoted numbers as factors
James Hirschorn · Oct 5, 2010 · r-help

Yes, your solution of setting quote="" would read the multi-word strings incorrectly. A more complicated version of your solution should work: First check which columns are identified as strings, and then apply your solution to the remaining columns. I...

Is this a bug in quantmod::OpCl?
James Hirschorn · Apr 8, 2016 · r-help

On 04/06/2016 07:58 PM, Joshua Ulrich wrote: > On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn > <james.hirschorn at hotmail.com> wrote: >> OpCl works on xts objects but not on quantmod.OHLC objects. Is this...

Quantstrat - running applyStrategy in a loop
James Hirschorn · Aug 21, 2018 · r-sig-finance

Thanks for the very detailed reply! I couldn't find a parallel applyStrategy in the sandbox. Is it still there, and if so what is the filename? In any case, if I understood correctly it should instead be modelled on...

Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)
James Hirschorn · Apr 4, 2019 · r-sig-finance

I looked into IQFeed for intraday stock data, and unfortunately they only provide historical 1-minute data for stocks that are currently traded. This is not good enough for one of the strategies I'm working on. I am looking...

Can't find what you're looking for? Try searching with Google .