aggr_metadata: Aggregate metadata

View source: R/graph.R

aggr_metadataR Documentation

Aggregate metadata

Description

Aggregate a metadata column to get a summarized value for a cluster node

Usage

aggr_metadata(node_data, col_name, col_aggr, metadata, is_cluster)

Arguments

node_data

data.frame containing information about a set of cluster nodes

col_name

the name of the metadata column to aggregate

col_aggr

string naming a function used to aggregate the column

metadata

data.frame providing metadata on samples

is_cluster

logical vector indicating which rows of metadata are in the node to be summarized

Value

data.frame with aggregated data


lazappi/clustree documentation built on Nov. 9, 2023, 7:54 p.m.