Learn R Programming

spanner (version 1.0.2)

las2xyz: Convert LAS object to XYZ matrix

Description

Extracts the X, Y, and Z coordinates from a LAS object and returns them as a matrix.

Usage

las2xyz(las)

Value

A numeric matrix with three columns (X, Y, Z) containing the point coordinates

Arguments

las

LAS object to convert

Examples

Run this code
# \donttest{
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile)
xyz_matrix <- las2xyz(las)
head(xyz_matrix)
# }

Run the code above in your browser using DataLab