.clean_chain {BayesSpace} | R Documentation

## Tidy C++ outputs before writing to disk.

### Description

1) Convert each parameter to matrix (n_iterations x n_indices) 2) Add appropriate colnames 3) Thin evenly (for enhance)

### Usage

    .clean_chain(out, method = c("cluster", "enhance"), thin = 100)

### Arguments

`out` | List returned by `cluster()` or `deconvolve()`.
`method` | Whether the output came from clustering or enhancement. (Different params are included in each.)
`thin` | Thinning rate. Some enhanced parameters are thinned within C++ loop, others (`mu` and `Ychange`) need to be thinned afterwards.

### Value

List with standardized parameters

[Package BayesSpace version 1.2.1 Index]