to_x_from_list: Convert list format to desired format

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Convert any list format to the convenient one

Usage

1
to_x_from_list(scores, x)

Arguments

scores

list to reformat

x

character, desired format

Value

scores in desired format

Examples

1
2
3
4
5
data(graph_toy)
x_v <- diffuStats:::to_x_from_list(
    diffuStats:::to_list(graph_toy$input_vec), "vector")
x_m <- diffuStats:::to_x_from_list(
    diffuStats:::to_list(graph_toy$input_vec), "matrix")

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