nextinfo

Retrieve information about next Haver Analytics variable

Syntax

D = nextinfo(c,s)

Arguments

c

Haver Analytics® connection object created with the haver function.

s

Haver Analytics variable.

Description

D = nextinfo(c,s) returns information for the next Haver Analytics variable after the variable, s.

Examples

collapse all

Establish a Haver Analytics connection.

c = haver('d:\work\haver\data\usecon.dat');

Request information for the variable following 'FFED'. The variable d is a structure with a field for each piece of information.

s = 'FFED';
d = nextinfo(c,s)
d = 

  struct with fields:

     VarName: 'FFED2'
   StartDate: '01-Jan-1991'
     EndDate: '31-Dec-1998'
   NumberObs: 2088
   Frequency: 'D'
 DateTimeMod: '02-Apr-2007 20:46:37'
   Magnitude: 0
DecPrecision: 2
     DifType: 1
     AggType: 'AVG'
    DataType: '%'
       Group: 'Z05'
      Source: 'FRB'
  Descriptor: 'Federal Funds [Effective] Rate (% p.a.)'
 ShortSource: 'History'
  LongSource: 'Historical Series'

Close the Haver Analytics connection.

close(c)

Establish a Haver Analytics connection.

c = haver('d:\work\haver\data\usecon.dat');

Set the data return format to a table using the DataReturnFormat property of the haver object.

c.DataReturnFormat = 'table';

Request information for the variable following 'ABQ'. The variable d is a table with a variable for each piece of information.

s = 'ABQ';
d = nextinfo(c,s)
d =

  1×16 table

    VarName       StartDate         EndDate       NumberObs    Frequency         DateTimeMod          Magnitude    DecPrecision    DifType    AggType    DataType    Group    Source                  Descriptor                   ShortSource               LongSource            
    ________    _____________    _____________    _________    _________    ______________________    _________    ____________    _______    _______    ________    _____    ______    _______________________________________    ___________    _________________________________

    'ACPIF1'    '01-Jan-1967'    '01-Apr-2015'     580.00         'M'       '22-May-2015 14:38:33'      0.00           2.00         1.00       'NA'        '%'       'P25'    'STLF'    'Atlanta Fed Flexible CPI (SAAR, %chg)'     'FRBATL'      'Federal Reserve Bank of Atlanta'

Close the Haver Analytics connection.

close(c)

Establish a Haver Analytics connection.

c = haver('d:\work\haver\data\usecon.dat');

Set the date and time format to a datetime array using the DatetimeType property of the haver object.

c.DatetimeType = 'datetime';

Request information for the variable following 'ABQ'.

s = 'ABQ';
d = nextinfo(c,s)
d = 

  struct with fields:

         VarName: 'ACPIF1'
       StartDate: 01-Jan-1967
         EndDate: 01-Apr-2015
       NumberObs: 580.00
       Frequency: 'M'
     DateTimeMod: 22-May-2015 14:38:33
       Magnitude: 0
    DecPrecision: 2.00
         DifType: 1.00
         AggType: 'NA'
        DataType: '%'
           Group: 'P25'
          Source: 'STLF'
      Descriptor: 'Atlanta Fed Flexible CPI (SAAR, %chg)'
     ShortSource: 'FRBATL'
      LongSource: 'Federal Reserve Bank of Atlanta'

The variable d is a structure with a field for each piece of information. The dates are datetime arrays.

Close the Haver Analytics connection.

close(c)

Introduced in R2007a