simplify_masked: Simplify Masked Results

View source: R/minc_interface.R

simplify_maskedR Documentation

Simplify Masked Results

Description

Take the results of an RMINC function that produces masked results and coerce it to the appropriate result. Scalar elements are converted to a vector, Vector elements are converted to an array, data.frame elements are row-bound, and more complex objects are converted to a list.

Usage

simplify_masked(result_list)

Arguments

result_list

The list of potentially masked results

Value

Scalar elements are converted to a vector, Vector elements are converted to an array, data.frame elements are row-bound, and more complex objects are converted to a list. Result lists should be all of the same type of unexpected errors may occur.


Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.