Create Data Frame of Extended Coordinates
Source:R/harmonic_extension.R
as.data.frame.harmonic_extension.RdExtracts the harmonic extension results as a data frame suitable for downstream analysis.
Usage
# S3 method for class 'harmonic_extension'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
y = NULL,
density = NULL,
...
)Value
A data frame with columns:
- vertex
Vertex index (1-based)
- coord
Extended coordinate in \([0, 1]\)
- hop.dist
Hop distance from trajectory
- geo.dist
Geodesic distance from trajectory
- nearest.traj.vertex
Nearest trajectory vertex (1-based)
- on.trajectory
Logical; TRUE if vertex is on the trajectory
- y
Response value (if provided)
- density
Density value (if provided)