Learn R Programming

clustree (version 0.5.1)

aggr_metadata: 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)

Value

data.frame with aggregated data

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