TreeLS (version 1.0)

setTLS: Reset or create a LAS object depending on the input's type

Description

Reset the input's header if it is a LAS object, or generate a new LAS from a table-like input. For more information, checkout the lidR::LAS description page.

Usage

setTLS(cloud, colNames = NULL)

Arguments

cloud

LAS, data.frame, matrix or similar object to be converted or reset.

colNames

optional - character vector. Only used for table-like files. It states the column names - if not set, only the 3 first columns will be converted to XYZ.

Value

LAS object.

Examples

Run this code
# NOT RUN {
cld = matrix(runif(300, 0, 10), ncol=3)
cld = setTLS(cld)
summary(cld)
# }

Run the code above in your browser using DataLab