anatSummarize | R Documentation |
Take the results of anatGetAll and summarize a grouping label, typically the structures group in the anatomical hierarchy.
anatSummarize(
anat,
summarize_by = "hierarchy",
defs = getOption("RMINC_LABEL_DEFINITIONS"),
discard_missing = FALSE
)
anat |
The results of a call to anatGetAll |
summarize_by |
either a data frame with grouping information or a path to label definitions.
If a data frame is passed it must have two columns: "label" containing the structure
name (see |
defs |
A text file containing the label definitions if |
discard_missing |
logical controlling how to handle structures with no ("") group information. If TRUE filter these structures, if FALSE give each structure a group label to match their structure name. |
A matrix with columns representing groups from the hierarchy and rows representing individuals with values equal to the sum of the individual members of each group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.