Reference - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

DataSets

 Reference
 create a reference to a data set

 Calling Sequence Reference(source, id)

Parameters

 source - string; name of the source, which must be "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, Builtin).

Examples

 > $\mathrm{with}\left(\mathrm{DataSets}\right):$

Create a Builtin data set.

 > $\mathrm{bdata}≔\mathrm{Reference}\left("Builtin","Country"\right)$
 ${\mathrm{bdata}}{≔}\left[\begin{array}{ccccc}{\mathrm{Country \left(Name\right)}}& {\mathrm{Currency Code}}& {\mathrm{2 Letter Country Code}}& {\dots }& {\mathrm{\left(57 more\right)}}\\ {\mathrm{Afghanistan}}& {"AFN"}& {"AF"}& {\dots }& {}\\ {\mathrm{Albania}}& {"ALL"}& {"AL"}& {\dots }& {}\\ {\mathrm{Algeria}}& {"DZD"}& {"DZ"}& {\dots }& {}\\ {⋮}& {⋮}& {⋮}& {\ddots }& {}\\ {\mathrm{\left(182 more\right)}}& {}& {}& {}& {}\end{array}\right]$ (1)

Convert to a Matrix.

 > $\mathrm{convert}\left(\mathrm{bdata}\left[1..3,1..3\right],'\mathrm{Matrix}'\right)$
 $\left[\begin{array}{cccc}{"Afghanistan"}& {"AFN"}& {"AF"}& {"af"}\\ {"Albania"}& {"ALL"}& {"AL"}& {"al"}\\ {"Algeria"}& {"DZD"}& {"DZ"}& {"dz"}\end{array}\right]$ (2)

Compatibility

 • The DataSets[Reference] command was introduced in Maple 2015.
 • For more information on Maple 2015 changes, see Updates in Maple 2015.