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")

diffuStats documentation built on Feb. 22, 2021, 10 a.m.