Learn R Programming

lidR (version 1.4.2)

as.lasmetrics: Set the class 'lasmetrics' to a data.frame or a data.table

Description

Set the class lasmetrics to a data.frame. Useful when reading data from a file. In this case the data.frame does not have the class lasmetrics and cannot easily be plotted or transformed into a raster

Usage

as.lasmetrics(x, res)

Arguments

x

A data.frame or a data.table

res

numeric the original resolution

Value

Nothing. Object is updated in place by reference.

See Also

Other cast: as.raster.lasmetrics, as.spatial