transform(deprecated)/tallyinto - Help

Online Help

All Products    Maple    MapleSim


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

stats[transform, tallyinto]

group together data into a given pattern

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stats[transform, tallyinto](data,partition)

transform[tallyinto](data,partition)

stats[transform, tallyinto['extra']](data, partition)

Parameters

data

-

statistical list

partition

-

list showing how the data is to be split

extra

-

name

Description

• 

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].

Examples

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

withstats&colon;

data17&comma;11&comma;2&comma;19&comma;13&comma;5&comma;7&comma;10&comma;15&comma;16

data1:=7&comma;11&comma;2&comma;19&comma;13&comma;5&comma;7&comma;10&comma;15&comma;16

(1)

transform&lsqb;tallyinto&rsqb;data1&comma;1..5&comma;5..10&comma;10..15&comma;15..20

1..5&comma;Weight5..10&comma;3&comma;Weight10..15&comma;3&comma;Weight15..20&comma;3

(2)

data21&comma;2&comma;3&comma;missing&comma;3&comma;4..5&comma;4..5&comma;Weight4..5&comma;6&comma;6..7&comma;6..7

data2:=1&comma;2&comma;3&comma;missing&comma;3&comma;4..5&comma;4..5&comma;Weight4..5&comma;6&comma;6..7&comma;6..7

(3)

transform&lsqb;tallyinto&rsqb;data2&comma;1..3&comma;3..4&comma;4..8

Weight1..3&comma;2&comma;Weight3..4&comma;2&comma;Weight4..8&comma;10&comma;missing

(4)

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.

infolevelstats1

infolevelstats:=1

(5)

transform&lsqb;tallyinto&rsqb;data2&comma;1..3&comma;4..8

Error, (in `stats/abort`) [[transform[tallyinto], `these data items do not fit in target pattern`, 3, 3]]

exceptions&apos;exceptions&apos;&colon;

transform&lsqb;tallyinto&lsqb;&apos;exceptions&apos;&rsqb;&rsqb;data2&comma;1..3&comma;4..8

Weight1..3&comma;2&comma;Weight4..8&comma;10&comma;missing

(6)

exceptions

3&comma;3

(7)

See Also

infolevel

sort

Statistics

Statistics[TallyInto]

transform(deprecated)[statsort]

transform(deprecated)[statvalue]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam