DataSets[Quandl][Reference] - Maple Programming Help

Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : Quandl : DataSets/Quandl/Reference/NewestValues

DataSets[Quandl][Reference]

 efficiently retrieves the newest values of a list of Quandl references

Parameters

 reflist - list of Quandl references

Description

 • The NewestValues command returns a list of lists with the newest values of the references in reflist, preserving order.
 • Each inner list will contain the numerical values of the newest values corresponding to that data set, or undefined if the data cannot be retrieved. The order of the values in the inner lists will match the order of the columns.
 • This command tries to minimize the number of API calls required, and the amount of data retrieved.

Examples

 > $\mathrm{with}\left(\mathrm{DataSets}\right):$
 > $\mathrm{refa}≔\mathrm{Reference}\left("Quandl","FRED/CANPOPL"\right)$
 ${\mathrm{refa}}{≔}\left[\begin{array}{c}{\mathrm{Data set}}\\ {\mathrm{Population in Canada \left(DISCONTINUED\right)}}\\ {\mathrm{Quandl FRED/CANPOPL}}\\ {\mathrm{up to 52 rows \left(annual\right), 1 column}}\\ {\mathrm{1960-01-01 - 2011-01-01}}\end{array}\right]$ (1)
 > $\mathrm{refb}≔\mathrm{Reference}\left("Quandl","BITCOINWATCH/MINING"\right)$
 ${\mathrm{refb}}{≔}\left[\begin{array}{c}{\mathrm{Data set}}\\ {\mathrm{Bitcoin Mining Statistics}}\\ {\mathrm{Quandl BITCOINWATCH/MINING}}\\ {\mathrm{up to 2382 rows \left(daily\right), 13 columns}}\\ {\mathrm{2013-08-26 - 2020-03-03}}\end{array}\right]$ (2)

Since the only argument must be of type list, the command must be accessed explicitly

 > $\mathrm{refa}:-\mathrm{NewestValues}\left(\left[\mathrm{refa},\mathrm{refb}\right]\right)$
 $\left[\left[{34.48}\right]{,}\left[{1.65228000}{}{{10}}^{{7}}{,}{1.453064600400}{}{{10}}^{{11}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{481823.0}{,}{0.}{,}{0.}{,}{9.232330684490}{}{{10}}^{{11}}{,}{8.877369440470}{}{{10}}^{{11}}{,}{6.35466857}{}{{10}}^{{6}}{,}{8.070429084}{}{{10}}^{{7}}\right]\right]$ (3)
 > $\mathrm{Quandl}:-\mathrm{Reference}:-\mathrm{NewestValues}\left(\left[\mathrm{refb}\right]\right)$
 $\left[\left[{1.65228000}{}{{10}}^{{7}}{,}{1.453064600400}{}{{10}}^{{11}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{\mathrm{undefined}}{,}{481823.0}{,}{0.}{,}{0.}{,}{9.232330684490}{}{{10}}^{{11}}{,}{8.877369440470}{}{{10}}^{{11}}{,}{6.35466857}{}{{10}}^{{6}}{,}{8.070429084}{}{{10}}^{{7}}\right]\right]$ (4)

Compatibility

 • The DataSets[Quandl][Reference][NewestValues] command was introduced in Maple 2015.