Description Usage Arguments Details Value Note See Also Examples

This function converts a list whose members are numeric vectors (possibly of different length) to a matrix.

1 | ```
rpdataconv(x)
``` |

`x` |
A list of numerics, a numeric vector or a matrix |

If the list entries do not have the same length, the shorter elements are *not* recycled, but
filled with `NA`

instead.

A matrix whose columns contain the members of `x`

.

For consistency, `x`

can also be a numeric vector or matrix. The return value is then the same
as the one of `as.matrix`

.

See `rpdatasim`

for creating a similar data matrix with simulated data, and
`rpdataboot`

for creating boostrap replications of such a data matrix.

1 2 3 4 5 6 | ```
# Gemerate samples of different size from an
# exponential distribution with different parameters
x <- list(rexp(10, 0.2), rexp(7, 0.1), rexp(12, 0.5))
# Write x into a matrix that can be further processed
x.rp <- bootruin:::rpdataconv(x)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.