DataSets[Builtin][Reference]
convert
convert built-in reference to another data type
Calling Sequence
Parameters
Description
Examples
Compatibility
convert(ref, conversion, extra)
ref
-
built-in data reference object
conversion
name; convert to this type
extra
(optional) extra arguments for the conversion
The convert command can convert to an Array, Matrix, listlist, Vector, or list.
The conversions to Array, Matrix, and Vector accept any number of extra arguments which are passed to the appropriate data structure constructor. You can use this to, for example, set the order of the new data structure by passing a order = o option.
Data sets are typically large enough that converting the whole data set will require a substantial amount of time to download all the metadata. Converting smaller subsets will take less time.
with⁡DataSets:
ref≔Reference⁡Builtin,Country
ref≔Country (Name)Currency Code2 Letter Country Code…(57 more)AfghanistanAFNAF…AlbaniaALLAL…AlgeriaDZDDZ…⋮⋮⋮⋱(182 more)
The data in this data set as a Matrix:
convert⁡ref1..3,1..3,Matrix
AfghanistanAFNAFafAlbaniaALLALalAlgeriaDZDDZdz
The data as a list of lists:
convert⁡ref1..3,1..3,listlist
Afghanistan,AFN,AF,af,Albania,ALL,AL,al,Algeria,DZD,DZ,dz
refg≔Reference⁡Builtin,GeoNames
refg≔Geonames (GeoNamesid)NameType…(7 more)68Boneh-ye Mehdisection of populated place…121Lab Sefidlocality…166Gorizilocality…⋮⋮⋮⋱(1155858 more)
convert⁡refgName=Paris,1000000<Population,Matrix
2968815Parissecond-order administrative division48.85340000000000062.34859999999999980FranceIle-de-FranceParis2257981Europe/Paris2988506Paristhird-order administrative division48.85338999999999742.34864000000000006FranceIle-de-FranceParis2257981Europe/Paris2988507Pariscapital of a political entity48.85340999999999672.34880000000000022FranceIle-de-FranceParis2138551Europe/Paris
The DataSets[Builtin][Reference][convert] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Download Help Document