## `stats::sample2list` -- convert a sample to a list of lists

#### Introduction

`stats::sample2list``(s)` converts the sample `s` to a list of lists.

#### Call(s)

`stats::sample2list(s)`

#### Parameters

`s` | - | a sample of domain type `stats::sample`.

#### Returns

a list of lists.

#### Related Functions

`stats::unzipCol`, `stats::zipCol`

#### Details

- The sub-lists of the list returned by `stats::sample2list``(s)` are the rows of the sample `s`.

#### Example 1

First we create a sample from a list of lists:

    >> stats::sample([[123, s, 1/2], [442, s, -1/2], [322, p, -1/2]])

                                  123  s   1/2
                                  442  s  -1/2
                                  322  p  -1/2

The input list may be recovered by `stats::sample2list`:

    >> stats::sample2list(%)

                  [[123, s, 1/2], [442, s, -1/2], [322, p, -1/2]]

#### Changes

- new function

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000