Learn R Programming

lidR (version 2.1.4)

is: A set of boolean tests on objects

Description

is.empty tests if a LAS object is a point cloud with 0 points. is.overlapping tests if a LAScatalog has overlapping tiles. is.indexed tests if the points of a LAScatalog are indexed with .lax files. is.algorithm tests if an object is an algorithm of the lidR package. is.parallelised tests if an algorithm of the lidR package is natively parallelised with OpenMP. Returns TRUE if the algorithm is at least partially parallelised i.e. if some portion of the code is computed in parallel.

Usage

is.empty(las)

is.overlapping(catalog)

is.indexed(catalog)

is.algorithm(x)

is.parallelised(algorithm)

Arguments

las

A LAS object.

catalog

A LAScatalog object.

x

Any R object.

algorithm

An algorithm object.

Value

TRUE or FALSE

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "example.laz", package="rlas")
las = readLAS(LASfile)
is.empty(las)

las = new("LAS")
is.empty(las)

f <- lmf(2)
is.parallelised(f)

g <- pitfree()
is.parallelised(g)

ctg <- readLAScatalog(LASfile)
is.indexed(ctg)
# }

Run the code above in your browser using DataLab