nextinfo
Retrieve information about next Haver Analytics variable
Syntax
Description
d = nextinfo(
returns a structure containing information for the next Haver Analytics® variable, where c
,variable
)c
is either a haver
or haverdirect
connection object.
Examples
Retrieve Information About Next Variable
Establish a haver
connection.
c = haver('d:\work\haver\data\usecon.dat');
Retrieve information for the variable that follows FFED
.
variable = "FFED";
d = nextinfo(c,variable)
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
connection.
close(c)
Retrieve Information About Next Variable in Table Format
Establish a haver
connection.
c = haver('d:\work\haver\data\usecon.dat');
Set the data return format to a table by using the
DataReturnFormat
property of the haver
object.
c.DataReturnFormat = 'table';
Request information for the variable that follows ABQ
.
variable = "ABQ";
d = nextinfo(c,variable)
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
connection.
close(c)
Input Arguments
c
— Haver Analytics connection
haver
object | haverdirect
object
Haver Analytics connection, specified as a haver
or
haverdirect
connection object.
variable
— Haver Analytics variable
character vector | string scalar
Haver Analytics variable, specified as a character vector or string scalar.
Example: "FFED"
Version History
Introduced in R2007a
See Also
close
| get
| haver
| haverdirect
| info
| isconnection
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)