Fred PAYEMS fetch data error

Hello,
I can fetch most of the Fred data, however there seems to be a problem with the nonfarm payroll employment (PAYEMS) data. I use the following code:
c = fred;
FredData = fetch(c, 'PAYEMS');
However I get the following error:
_Attempted to access j(1); index out of bounds because numel(j)=0.
Error in fred/fetch (line 76)
tmpfld = x{i}(1:j(1)-1);_
I do not understand why because when I fetch data such as INDPRO, it works.
I would appreciate your input.
Thank you in advance,

回答 (2 件)

YG
YG 2015 年 7 月 3 日

0 投票

The error is due to non-standard structure of the PAYEMS Notes. Please find attached fetch1 function, which you can use to download PAYEMS.
YG
YG 2015 年 7 月 3 日

0 投票

The error is due to non-standard structure of the PAYEMS Notes. Please find attached fetch1 function, which you can use to download PAYEMS.

この質問は閉じられています。

質問済み:

2014 年 10 月 18 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by