flatten_3d_to_2d: Helper function that flattens a 3D array into a 2D one

View source: R/DirichletProcessClustering.R

flatten_3d_to_2dR Documentation

Helper function that flattens a 3D array into a 2D one

Description

Helper function that flattens a 3D array into a 2D one

Usage

flatten_3d_to_2d(data, col_names)

Arguments

data

The data to be flattened

col_names

The names of the columns in the output

Value

A data.frame with the third column annotated as the first column

Author(s)

sd11


Wedge-Oxford/dpclust documentation built on July 6, 2024, 2:02 p.m.