Learn R Programming

rlas (version 1.8.0)

compression: ALTREP utilities

Description

Test if an a vector is compressed using the ALTREP framework

Usage

is_compressed(x)

true_size(x)

Arguments

x

an R object

Examples

Run this code
lazfile <- system.file("extdata", "example.las", package = "rlas")
las <- read.las(lazfile)
is_compressed(las)

# The difference is more substantial on bigger point clouds (~30%)
object.size(las)
true_size(las)

Run the code above in your browser using DataLab