Learn R Programming

quollr (version 1.0.6)

assign_data: Assign data to hexagons

Description

This function assigns the data to hexagons.

Usage

assign_data(nldr_scaled_obj, centroids_data)

Value

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

Arguments

nldr_scaled_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.

Examples

Run this code
all_centroids_df <- scurve_model_obj$hb_obj$centroids
assign_data(nldr_scaled_obj = scurve_model_obj$nldr_scaled_obj,
centroids_data = all_centroids_df)

Run the code above in your browser using DataLab