stats::zipCol

Convert a sequence of columns to a list of lists

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

stats::zipCol(column1, column2, …)

Description

stats::zipCol(..) converts a sequence of columns to a format suitable for creating a stats::sample.

stats::zipCol is useful for converting column data given in lists to a list of lists accepted by stats::sample.

stats::zipCol is the inverse of stats::unzipCol.

Examples

Example 1

We convert a single column to a nested list:

stats::zipCol([a, b, c])

This list is accepted by stats::sample:

stats::sample(%)
a
b
c

Example 2

We build a sample consisting of two columns:

column1 := [122, 442, 322]: column2 := [s, s, p]:
stats::zipCol(column1, column2)

stats::sample(%)
122  s
442  s
322  p

Parameters

column1, column2, …

Lists.

Return Values

List of lists.

See Also

MuPAD Functions

Was this topic helpful?