info
Retrieve information about Haver Analytics variables
Syntax
D = info(c,s)
Description
D = info(c,s)
returns information about the
Haver Analytics variable, s
.
Examples
Retrieve Information About Variable
Using a Haver Analytics connection, retrieve information about a variable.
Establish a Haver Analytics connection c
.
c = haver('d:\work\haver\data\haverd.dat');
Request information for the variable 'FFED2'
. The variable
d
is a structure with a field for each piece of
information.
s = 'FFED2';
d = info(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)
Retrieve Information About Variable as Table
Using a Haver Analytics connection, retrieve information about a variable. Return information as a table.
Establish a Haver Analytics connection c
.
c = haver('d:\work\haver\data\haverd.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 'ABQ'
. The variable
ABQ
provides bankruptcy filings in the US. d
is a table with a variable for each piece of information.
s = 'ABQ';
d = info(c,s)
d = 1×16 table VarName StartDate EndDate NumberObs Frequency DateTimeMod Magnitude DecPrecision DifType AggType DataType Group Source Descriptor ShortSource LongSource _______ _____________ _____________ _________ _________ ______________________ _________ ____________ _______ _______ ________ _____ ______ ________________________________________ ___________ __________________________________________ 'ABQ' '01-Jan-1980' '01-Jan-2015' 141.00 'Q' '28-Apr-2015 16:21:22' 0.00 0.00 0.00 'SUM' 'Units' 'C13' 'USC' 'Total Bankruptcy Filings, U.S. (Units)' 'USCOURTS' 'Administrative Office of the U.S. Courts'
Close the Haver Analytics connection.
close(c)
Retrieve Information About Variable with Datetime
Using a Haver Analytics connection, retrieve information about a variable. Return dates as
datetime
arrays.
Establish a Haver Analytics connection c
.
c = haver('d:\work\haver\data\haverd.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 'ABQ'
. The variable
ABQ
provides bankruptcy filings in the US.
s = 'ABQ';
d = info(c,s)
d = struct with fields: VarName: 'ABQ' StartDate: 01-Jan-1980 EndDate: 01-Jan-2015 NumberObs: 141.00 Frequency: 'Q' DateTimeMod: 28-Apr-2015 16:21:22 Magnitude: 0 DecPrecision: 0 DifType: 0 AggType: 'SUM' DataType: 'Units' Group: 'C13' Source: 'USC' Descriptor: 'Total Bankruptcy Filings, U.S. (Units)' ShortSource: 'USCOURTS' LongSource: 'Administrative Office of the U.S. Courts'
d
is a structure with a field for each piece of information.
The dates are datetime
arrays.
Close the Haver Analytics connection.
close(c)
Version History
Introduced in R2007a
See Also
close
| get
| isconnection
| haver
| nextinfo
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)