DataSeries/Append - Maple Programming Help

DataSeries/Append

append a DataSeries to another DataSeries

 Calling Sequence Append( ds1, ds2 )

Parameters

 ds1 - : a DataSeries object ds2 - : a DataSeries object

Description

 • The Append( ds1, ds2 ) command appends the DataSeries df2 to the DataSeries df1, and returns the newly constructed DataSeries.
 • It is required that the row labels for the DataSeries df1 and df2 be disjoint.

Examples

 > $\mathrm{ds1}≔\mathrm{DataSeries}\left(\left[1,2,3\right],'\mathrm{labels}'=\left['a','b','c'\right]\right)$
 ${\mathrm{ds1}}{≔}\left[\begin{array}{cc}{a}& {1}\\ {b}& {2}\\ {c}& {3}\end{array}\right]$ (1)
 > $\mathrm{ds2}≔\mathrm{DataSeries}\left(\left[-1,-2,-3,-4,-5\right],'\mathrm{labels}'=\left['d','e','f','g','h'\right]\right)$
 ${\mathrm{ds2}}{≔}\left[\begin{array}{cc}{d}& {-1}\\ {e}& {-2}\\ {f}& {-3}\\ {g}& {-4}\\ {h}& {-5}\end{array}\right]$ (2)
 > $\mathrm{ds}≔\mathrm{Append}\left(\mathrm{ds1},\mathrm{ds2}\right)$
 ${\mathrm{ds}}{≔}\left[\begin{array}{cc}{a}& {1}\\ {b}& {2}\\ {c}& {3}\\ {d}& {-1}\\ {e}& {-2}\\ {f}& {-3}\\ {g}& {-4}\\ {h}& {-5}\end{array}\right]$ (3)
 > $\mathrm{ds3}≔\mathrm{DataSeries}\left(\left[4,5,6\right],'\mathrm{labels}'=\left['c','d','e'\right]\right)$
 ${\mathrm{ds3}}{≔}\left[\begin{array}{cc}{c}& {4}\\ {d}& {5}\\ {e}& {6}\end{array}\right]$ (4)
 > $\mathrm{Append}\left(\mathrm{ds1},\mathrm{ds3}\right)$

Compatibility

 • The DataSeries/Append command was introduced in Maple 2016.