Learn R Programming

fsbrain (version 0.5.5)

group.morph.standard.sf: Read combined data for a group from a single file.

Description

Read morphometry data for a group from a matrix in a single MGH or MGZ file.

Usage

group.morph.standard.sf(filepath, df = TRUE)

Value

dataframe or 4d matrix, the morph data. See parameter 'df' for details.

Arguments

filepath

character string, path to a file in MGH or MGZ format

df

logical, whether to return a data.frame, like group.morph.standard. If FALSE, the raw 4d matrix is returned.

See Also

write.group.morph.standard.mf to write the data to one file per hemi per subject instead. If you have created the input data file in FreeSurfer based on an FSGD file, you can read the subject identifiers from that FSGD file using read.md.subjects.from.fsgd.