DataSets - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : DataSets/Reference

DataSets

  

Reference

  

create a reference to a data set

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Reference(source, id)

Parameters

source

-

string; name of the source, which is one of "Quandl" or "Builtin"

id

-

string; identifier of the data set

Description

• 

The Reference command creates a reference to a data set and retrieves metadata about the data available for the data set. It returns a Reference object.

• 

The corresponding data can then be retrieved by converting the object to a suitable data structure. The data structures supported differ from reference to reference, but Matrix is always supported.

• 

For more information, see the Reference object help pages for data coming from particular data sources (for example, Quandl or Builtin).

Examples

withDataSets:

Create a Quandl data set.

qdataReferenceQuandl,FRED/CANPOPL

qdataData setPopulation in CanadaQuandl FRED/CANPOPLup to 52 rows (annual), 1 column1960-01-01 - 2011-01-01

(1)

Create a Builtin data set.

bdataReferenceBuiltin,Country

bdataCountry (Name)CO2 EmissionsCPI Change(124 more)AfghanistanTimeSeries 12251.447TimeSeries 7.6476076230378AlbaniaTimeSeries 4668.091TimeSeries 1.6285401210224AlgeriaTimeSeries 121755.401TimeSeries 2.9164064126589(182 more)

(2)

Convert to a Matrix.

convertqdata,'Matrix'

52 x 2 MatrixData Type: anythingStorage: rectangularOrder: Fortran_order

(3)

convertbdata1..3,1..3,'Matrix'

AfghanistanData setAfghanistan: CO2 emissions (kt)Quandl WORLDBANK/AFG_EN_ATM_CO2E_KTup to 52 rows (annual), 1 column1960-12-31 - 2011-12-31Data setAfghanistan: Inflation, consumer prices (annual %)Quandl WORLDBANK/AFG_FP_CPI_TOTL_ZGup to 9 rows (annual), 1 column2005-12-31 - 2013-12-31Data setAfghanistan: Mortality rate, under-5 (per 1,000 live births)Quandl WORLDBANK/AFG_SH_DYN_MORTup to 54 rows (annual), 1 column1960-12-31 - 2013-12-31AlbaniaData setAlbania: CO2 emissions (kt)Quandl WORLDBANK/ALB_EN_ATM_CO2E_KTup to 52 rows (annual), 1 column1960-12-31 - 2011-12-31Data setAlbania: Inflation, consumer prices (annual %)Quandl WORLDBANK/ALB_FP_CPI_TOTL_ZGup to 23 rows (annual), 1 column1992-12-31 - 2014-12-31Data setAlbania: Mortality rate, under-5 (per 1,000 live births)Quandl WORLDBANK/ALB_SH_DYN_MORTup to 36 rows (annual), 1 column1978-12-31 - 2013-12-31AlgeriaData setAlgeria: CO2 emissions (kt)Quandl WORLDBANK/DZA_EN_ATM_CO2E_KTup to 51 rows (annual), 1 column1960-12-31 - 2010-12-31Data setAlgeria: Inflation, consumer prices (annual %)Quandl WORLDBANK/DZA_FP_CPI_TOTL_ZGup to 45 rows (annual), 1 column1970-12-31 - 2014-12-31Data setAlgeria: Mortality rate, under-5 (per 1,000 live births)Quandl WORLDBANK/DZA_SH_DYN_MORTup to 54 rows (annual), 1 column1960-12-31 - 2013-12-31

(4)

Compatibility

• 

The DataSets[Reference] command was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

DataSets

DataSets[Builtin][Reference]

DataSets[Quandl][Reference]