stats::sample2list
--
convert a sample to a list of listsstats::sample2list
(s)
converts the sample s
to a list of
lists.
stats::sample2list(s)
s |
- | a sample of domain type stats::sample . |
a list of lists.
stats::unzipCol
,
stats::zipCol
stats::sample2list
(s)
are the rows of the
sample s
.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]]