fs.value.list.from.agg.res: Create a named value list from a dataframe.

View source: R/morph_atlas_agg.R

fs.value.list.from.agg.resR Documentation

Create a named value list from a dataframe.

Description

Given the result of the group.agg.atlas.native() function, extract a named region value list (typically for use with the spread.values.over.annot() function) for a single subject.

Usage

fs.value.list.from.agg.res(agg_res, subject_id)

Arguments

agg_res,

a dataframe. The result of calling group.agg.atlas.native().

subject_id,

string. A subject identifier, must occur in the subject column of the dataframe agg_res.

Value

region_value_list, named list of strings. Each name must is a region name from the annotation, and the value is a scalar that resulting from aggregating the morphometry data for that region and subject.


fsbrain documentation built on July 9, 2023, 7:12 p.m.