Description Usage Arguments Value Author(s) See Also Examples

View source: R/dummy_to_list.r

Create an indexed list from the columns of a dummy (or semi-dummy) matrix

1 | ```
dummy_to_list(Dummy)
``` |

`Dummy` |
matrix (dummy by columns) |

A list of indexed vectors

Gaston Sanchez

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
# let's say you have a list like this
some_list = list(1:3, 1:2, 1:4)
# first create a dummy matrix based on some_list
some_dummy = list_to_dummy(some_list)
# now apply 'dummy_to_list'
dummy_to_list(some_dummy)
# a semi-dummy matrix
semi_dummy = some_dummy
semi_dummy[semi_dummy != 0] = rnorm(listsize(some_list))
dummy_to_list(semi_dummy)
``` |

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.