transform(deprecated)/statsort - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : transform(deprecated)/statsort

stats[transform, statsort]

sort statistical data

 Calling Sequence stats[transform, statsort](data) transform[statsort](data)

Parameters

 data - statistical list

Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function statsort of the subpackage stats[transform, ...] sorts the elements in data.
 • Missing items are placed at the end of the resulting list.
 • Classes can touch. If they overlap, they must be identical. Items with the same value are not combined. Use stats[transform, tally] to perform that task.
 • An error message indicating that stats/islessequal is not a Boolean function means that stats/islessequal was unable  to order two quantities. Check that the data is numeric or missing, and that classes do not overlap.
 • The name of this function is chosen so as not too clash with the sort() function.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

 > $\mathrm{with}\left(\mathrm{stats}\right):$
 > $\mathrm{data1}≔\left[7,11,2,19,13,5,7,10,15,16\right]$
 ${\mathrm{data1}}{≔}\left[{7}{,}{11}{,}{2}{,}{19}{,}{13}{,}{5}{,}{7}{,}{10}{,}{15}{,}{16}\right]$ (1)
 > ${\mathrm{transform}}_{\mathrm{statsort}}\left(\mathrm{data1}\right)$
 $\left[{2}{,}{5}{,}{7}{,}{7}{,}{10}{,}{11}{,}{13}{,}{15}{,}{16}{,}{19}\right]$ (2)
 > $\mathrm{data2}≔\left[12..13,\mathrm{Weight}\left(3,10\right),\mathrm{missing},4,\mathrm{Weight}\left(11..12,3\right)\right]$
 ${\mathrm{data2}}{≔}\left[{12}{..}{13}{,}{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{\mathrm{missing}}{,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right)\right]$ (3)
 > ${\mathrm{transform}}_{\mathrm{statsort}}\left(\mathrm{data2}\right)$
 $\left[{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right){,}{12}{..}{13}{,}{\mathrm{missing}}\right]$ (4)

 See Also