DataSets
Reference
create a reference to a data set
Calling Sequence
Parameters
Description
Examples
Compatibility
Reference(source, id)
source
-
string; name of the source, which must be "Builtin"
id
string; identifier of the data set
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).
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)
Convert to a Matrix.
convert⁡bdata1..3,1..3,Matrix
AfghanistanAFNAFafAlbaniaALLALalAlgeriaDZDDZdz
The DataSets[Reference] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
DataSets[Builtin][Reference]
Download Help Document