quandl / Matlab

Quandl's Matlab module
55 stars 57 forks source link

qopts.columns is not supported for data tables #16

Open SumanthReddyA opened 6 years ago

SumanthReddyA commented 6 years ago

qopts.columns options for accessing selected columns is not supporting. as documetns says data = Quandl.datatable('ZACKS/EE', 'ticker', 'AAPL', 'qopts.columns', {'per_end_date', 'per_type', 'eps_mean_est'}), but MATLAB throws error "Unmatched parameter name 'qopts.columns' must be a string scalar or character vector that can represent a field name ".

RaymondMcT commented 6 years ago

Older versions of Matlab allowed for periods in struct names, and at some time they removed that ability. A fix is to allow these parameters to be passed in as containers.Map as such

data = Quandl.datatable('ZACKS/EE', 'ticker', 'AAPL', 'qopts', containers.Map('columns', {'per_end_date', 'per_type', 'eps_mean_est'},'UniformValues',0))

This functionality is added in the alternative-syntax branch. Which should be merged into master soon but you're free to pull from there immediately.

SumanthReddyA commented 6 years ago

Thanks @RaymondMcT I will try the syntax and get back to you.

josephsmtepper commented 5 years ago

@RaymondMcT : Is there an updated file available for this functionality yet?