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

Online Help

All Products    Maple    MapleSim


DataSets[Builtin][Reference]

  

convert

  

convert built-in reference to another data type

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert(ref, conversion, extra)

Parameters

ref

-

built-in data reference object

conversion

-

name; convert to this type

extra

-

(optional) extra arguments for the conversion

Description

• 

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.

Examples

withDataSets:

refReferenceBuiltin,Country

refCountry (Name)Currency Code2 Letter Country Code(57 more)AfghanistanAFNAFAlbaniaALLALAlgeriaDZDDZ(182 more)

(1)

The data in this data set as a Matrix:

convertref1..3,1..3,Matrix

AfghanistanAFNAFafAlbaniaALLALalAlgeriaDZDDZdz

(2)

The data as a list of lists:

convertref1..3,1..3,listlist

Afghanistan,AFN,AF,af,Albania,ALL,AL,al,Algeria,DZD,DZ,dz

(3)

refgReferenceBuiltin,GeoNames

refgGeonames (GeoNamesid)NameType(7 more)68Boneh-ye Mehdisection of populated place121Lab Sefidlocality166Gorizilocality(1155858 more)

(4)

convertrefgName=Paris&comma;1000000<Population&comma;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

(5)

Compatibility

• 

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

convert