as.data.frame.APResult: Convert APResult (apcluster output) to dataframe

View source: R/clustering.R

as.data.frame.APResultR Documentation

Convert APResult (apcluster output) to dataframe

Description

This can then be used for plots, clustering etc.

Usage

## S3 method for class 'APResult'
as.data.frame(x, row.names = NULL, optional = FALSE, clusters, ...)

Arguments

x

an APResult object.

row.names

ignored.

optional

logical. If TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional.

clusters

a character vector of the names of the exemplars to include.

...

extra arguments to pass to data.frame.

Value

A data.frame with columns exemplar, cluster, idx, item.

See Also

apcluster,APResult


jefferis/flycircuit documentation built on Feb. 4, 2023, 6:04 p.m.