DataSets[Builtin][Reference] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : Builtin : DataSets/Builtin/Reference/convert

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)CO2 EmissionsCPI Change?(124 more)AfghanistanTimeSeries 9809.225TimeSeries 4.9759515055383?AlbaniaTimeSeries 5716.853TimeSeries 1.9939281048202?AlgeriaTimeSeries 145400.217TimeSeries 5.5911159096167?????(182 more)

(1)

The data in this data set as a Matrix:

convertref1..3,1..3,Matrix

AfghanistanData setCO2 emissions (kt) - AfghanistanQuandl WWDI/AFG_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31Data setInflation, consumer prices (annual %) - AfghanistanQuandl WWDI/AFG_FP_CPI_TOTL_ZGup to 13 rows (annual), 1 column2005-12-31 - 2017-12-31Data setMortality rate, under-5 (per 1,000 live births) - AfghanistanQuandl WWDI/AFG_SH_DYN_MORTup to 58 rows (annual), 1 column1960-12-31 - 2017-12-31AlbaniaData setCO2 emissions (kt) - AlbaniaQuandl WWDI/ALB_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31Data setInflation, consumer prices (annual %) - AlbaniaQuandl WWDI/ALB_FP_CPI_TOTL_ZGup to 26 rows (annual), 1 column1992-12-31 - 2017-12-31Data setMortality rate, under-5 (per 1,000 live births) - AlbaniaQuandl WWDI/ALB_SH_DYN_MORTup to 40 rows (annual), 1 column1978-12-31 - 2017-12-31AlgeriaData setCO2 emissions (kt) - AlgeriaQuandl WWDI/DZA_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31Data setInflation, consumer prices (annual %) - AlgeriaQuandl WWDI/DZA_FP_CPI_TOTL_ZGup to 48 rows (annual), 1 column1970-12-31 - 2017-12-31Data setMortality rate, under-5 (per 1,000 live births) - AlgeriaQuandl WWDI/DZA_SH_DYN_MORTup to 64 rows (annual), 1 column1954-12-31 - 2017-12-31

(2)

The data as a list of lists:

convertref1..3,1..3,listlist

Afghanistan,Data setCO2 emissions (kt) - AfghanistanQuandl WWDI/AFG_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31,Data setInflation, consumer prices (annual %) - AfghanistanQuandl WWDI/AFG_FP_CPI_TOTL_ZGup to 13 rows (annual), 1 column2005-12-31 - 2017-12-31,Data setMortality rate, under-5 (per 1,000 live births) - AfghanistanQuandl WWDI/AFG_SH_DYN_MORTup to 58 rows (annual), 1 column1960-12-31 - 2017-12-31,Albania,Data setCO2 emissions (kt) - AlbaniaQuandl WWDI/ALB_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31,Data setInflation, consumer prices (annual %) - AlbaniaQuandl WWDI/ALB_FP_CPI_TOTL_ZGup to 26 rows (annual), 1 column1992-12-31 - 2017-12-31,Data setMortality rate, under-5 (per 1,000 live births) - AlbaniaQuandl WWDI/ALB_SH_DYN_MORTup to 40 rows (annual), 1 column1978-12-31 - 2017-12-31,Algeria,Data setCO2 emissions (kt) - AlgeriaQuandl WWDI/DZA_EN_ATM_CO2E_KTup to 65 rows (annual), 1 column1950-12-31 - 2014-12-31,Data setInflation, consumer prices (annual %) - AlgeriaQuandl WWDI/DZA_FP_CPI_TOTL_ZGup to 48 rows (annual), 1 column1970-12-31 - 2017-12-31,Data setMortality rate, under-5 (per 1,000 live births) - AlgeriaQuandl WWDI/DZA_SH_DYN_MORTup to 64 rows (annual), 1 column1954-12-31 - 2017-12-31

(3)

refgReferenceBuiltin,GeoNames

refgGeonames (GeoNamesid)NameType?(7 more)?Boneh-ye Mehdisection of populated place??Lab Sefidlocality??Gorizilocality?????(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