create a Matrix of transformed data with algebraic expressions
ApplyToRows(ref, aexp1, aexp2, ..., aexpN)
reference to built-in data
aexp1, aexp2, ..., aexpN
algebraic expressions where the indeterminants are column names of ref as Maple names
The ApplyToRows command creates Matrix of transformed data.
The number of columns is equal to the number of algebraic expressions. The number of rows is equal to the number of rows in ref.
The value of the i,j-th entry is the j-th algebraic expression evaluated with the column names substituted for the values in those columns in the i-th row of ref.
Time series data in the reference object are treated as their newest value when using this command.
ref≔Country (Name)CO2 EmissionsPopulationCanadaTimeSeries
Find the CO2 emission per person in Canada or the USA
To also have the absolute CO2 emissions in the first column
ApplyToRows⁡refCanada,USA,`CO2 Emissions`,`CO2 Emissions`Population
The DataSets[Builtin][Reference][ApplyToRows] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
Download Help Document
What kind of issue would you like to report? (Optional)