get_mesh_agree_aggr_long: Shape aggregated agreement measures to long format

View source: R/functions.R

get_mesh_agree_aggr_longR Documentation

Shape aggregated agreement measures to long format

Description

Utility function to shape data frame with aggregated mesh agreement measures from wide format to long format.

Usage

get_mesh_agree_aggr_long(x)

Arguments

x

data.frame with aggregated agreement measures in wide format as returned by get_mesh_agree_aggr.

Details

Front-end for reshape.

Value

data.frame with the following variables:

group

The grouping variable indicating which pairs belong to the same structure.

metric

The calculated agreement measure.

statistic

The aggregate statistic over mesh pairs. This includes the mean, median, standard deviation, and coefficient of variation.

observed

The value observed for the statistic.

See Also

get_mesh_agree_aggr, reshape

Examples

heartL      <- mesh3dL_to_cgalMeshL(data_heart_obsL)
agreeW      <- get_mesh_agree(heartL, do_ui=FALSE)
agree_aggrW <- get_mesh_agree_aggr(agreeW)
get_mesh_agree_aggr_long(agree_aggrW)

MeshAgreement documentation built on Nov. 25, 2022, 5:05 p.m.