to_list: Convert input to list format

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Convert any input to list format

Usage

1
to_list(scores, dummy_column = "X1", dummy_list = "X1")

Arguments

scores

object to reformat

dummy_column, dummy_list

character, names for the dummy columns/items

Value

scores in list format

Examples

1
2
3
data(graph_toy)
x_v <- diffuStats:::to_list(graph_toy$input_vec)
x_m <- diffuStats:::to_list(graph_toy$input_mat)

b2slab/diffusion documentation built on March 6, 2021, 2:38 a.m.