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

Online Help

All Products    Maple    MapleSim


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 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

> 

with⁡DataSets:

Create a Builtin data set.

> 

bdata≔Reference⁡Builtin,Country

bdata≔Country (Name)Currency Code2 Letter Country Code…(57 more)AfghanistanAFNAF…AlbaniaALLAL…AlgeriaDZDDZ…⋮⋮⋮⋱(182 more)

(1)

Convert to a Matrix.

> 

convert⁡bdata1..3,1..3,Matrix

AfghanistanAFNAFafAlbaniaALLALalAlgeriaDZDDZdz

(2)

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]