group together data into a given pattern
stats[transform, tallyinto['extra']](data, partition)
list showing how the data is to be split
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function tallyinto of the subpackage stats[transform, ...] groups the items of data into the pattern given by partition.
The values (see transform[statvalue]) in the result are the values that were in partition.
If there are data items that do not fit into the given pattern and the parameter extra gives a name, then they are put into the name specified by extra. If the parameter extra is not specified, an error condition is raised which gives the non-conforming items.
Remember that for the stats package, the upper boundary of a class (or range) excludes the boundary. So the class 3..4 represents points x satisfying 3<=x<4. Refer to stats[data] for more information.
To regroup data, use stats[transform, tally] and stats[transform, statsort].
data1 ≔ 7,11,2,19,13,5,7,10,15,16
data2 ≔ 1,2,3,missing,3,4..5,4..5,Weight⁡4..5,6,6..7,6..7
Note, ranges are inclusive at the lower point, but excluding at the higher point, see what happens when 3..4 is omitted.
If infolevel is set to a greater integer (possible settings are 1 through 5), more detailed information about the computation method is displayed.
infolevelstats ≔ 1
Error, (in `stats/abort`) [[transform[tallyinto], `these data items do not fit in target pattern`, 3, 3]]
exceptions ≔ 'exceptions':
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.