assign_data: Assign data to hexagons

View source: R/2d.R

assign_dataR Documentation

Assign data to hexagons

Description

This function assigns the data to hexagons.

Usage

assign_data(nldr_obj, centroids_data)

Arguments

nldr_obj

A list of a tibble contains scaled first and second columns of NLDR data, and numeric vectors representing the limits of the original NLDR data.

centroids_data

The dataset with centroid coordinates.

Value

A tibble contains embedding components (emb1, emb2) and corresponding hexagon ID (h).

Examples

all_centroids_df <- scurve_model_obj$hb_obj$centroids
assign_data(nldr_obj = scurve_model_obj$nldr_obj,
centroids_data = all_centroids_df)


quollr documentation built on Aug. 8, 2025, 6:08 p.m.