JuliaQuant / FinancialBlotter.jl

Trade and Portfolio Accounting in Julia
Other
13 stars 12 forks source link

Allow fred to name the column but default to "VALUE" #4

Closed milktrader closed 11 years ago

milktrader commented 11 years ago

FRED data gives an uninformative column name (ie, VALUE) so the current fred implementation changes that to whatever the file name is. This should be an option.

fred(econdata::String) = fred(econdata::String, "VALUE")

milktrader commented 11 years ago

Here is a use case:

foo  = fred("CUSR0000SEHF01");

head(foo, 2)

6x2 DataFrame:
              Date CUSR0000SEHF01
[1,]    1952-01-01           27.5
[2,]    1952-02-01           27.5
[3,]    1952-03-01           27.5
[4,]    1952-04-01           27.5
[5,]    1952-05-01           27.5
[6,]    1952-06-01           27.5

I would rather have "VALUE" in this case, and have the option to name the column with CPI.

milktrader commented 11 years ago

Fixed 070d635a26f9297f989e49401670d730584dd1a2

milktrader commented 11 years ago

I want to figure out how to close from commit. This is a test.

milktrader commented 11 years ago

The problem I was having with closing this from commandline was because I'm using the following fancy script, which doesn't work with closing issues, not sure why.


function gg(){
    git commit -v -a -m "$*"
}