Learn R Programming

DCEM (version 1.0.0)

build_heap: build_heap: Part of DCEM package.

Description

Create the heap from the data frame. This function is for internal use and is called by the dcem_star_cluster_uv (univariate data) and dcem_star_cluster_mv (multivariate data).

Usage

build_heap(data)

Arguments

data

(dataframe): The dataframe containing the key, value pairs.

Value

data frame: The dataframe containing the heap.

References

Using data to build a better EM: EM* for big data.

Hasan Kurban, Mark Jenne, Mehmet M. Dalkilic (2016) <doi:https://doi.org/10.1007/s41060-017-0062-1>.

Examples

Run this code
# NOT RUN {
# Create a sample data frame
heap <- data.frame(keys=c(0,3,4), vals=c(7,7,4))

# Build the heap from the data frame.
heap <- build_heap(heap)

# }

Run the code above in your browser using DataLab