to_x_from_list {diffuStats} | R Documentation

## Convert list format to desired format

### Description

Convert any list format to the convenient one

### Usage

    to_x_from_list(scores, x)

### Arguments

`scores` | list to reformat
`x` | character, desired format

### Value

scores in desired format

### Examples

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

[Package diffuStats version 0.104.0 Index]