rle_compress | R Documentation |
Compress categorical raster data using run length encoding.
rle_compress(x, outfile, quiet = FALSE)
x |
File path to the categorical raster to be compressed, or a
|
outfile |
Character (optional). Path to target .rds file that will store RLE results. Directory will be created recursively if it doesn't exist. |
quiet |
Logical. Should progress messages be suppressed? |
A list with five elements:
starts
: Cell numbers corresponding to run starts
lengths
: Run lengths
values
: Run values
extent
: Raster extent
res
: Raster resolution
This object is additionally saved in rds format to outfile
, if
provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.