Extract | R Documentation |
Operators acting on LAS*
objects. However, some have modified behaviors to prevent some
irrelevant modifications. Indeed, a LAS*
object cannot contain anything, as the content
is restricted by the LAS specifications. If a user attempts to use one of these functions
inappropriately an informative error will be thrown.
## S4 method for signature 'LAS'
x$name
## S4 method for signature 'LAS,ANY,missing'
x[[i, j, ...]]
## S4 replacement method for signature 'LAS'
x$name <- value
## S4 replacement method for signature 'LAS,ANY,missing'
x[[i, j]] <- value
## S4 method for signature 'LAS,numeric,ANY'
x[i]
## S4 method for signature 'LAS,logical,ANY'
x[i]
## S4 method for signature 'LAS,sf,ANY'
x[i]
## S4 method for signature 'LAS,sfc,ANY'
x[i]
## S4 method for signature 'LAScatalog'
x$name
## S4 method for signature 'LAScatalog,ANY,missing'
x[[i, j, ...]]
## S4 method for signature 'LAScatalog,ANY,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LAScatalog,logical,ANY'
x[i]
## S4 method for signature 'LAScatalog,sf,ANY'
x[i]
## S4 method for signature 'LAScatalog,sfc,ANY'
x[i]
## S4 replacement method for signature 'LAScatalog,ANY,ANY'
x[[i, j]] <- value
## S4 replacement method for signature 'LAScatalog'
x$name <- value
## S4 method for signature 'LASheader'
x$name
## S4 replacement method for signature 'LASheader'
x$name <- value
## S4 method for signature 'LASheader,ANY,missing'
x[[i, j, ...]]
## S4 replacement method for signature 'LASheader,character,missing'
x[[i]] <- value
x |
A |
name |
A literal character string or a name (possibly backtick quoted). |
i |
string, name of elements to extract or replace. |
j |
Unused. |
... |
Unused |
value |
typically an array-like R object of a similar class as x. |
drop |
Unused |
LASfile <- system.file("extdata", "example.laz", package="rlas")
las = readLAS(LASfile)
las$Intensity
las[["Z"]]
las[["Number of points by return"]]
## Not run:
las$Z = 2L
las[["Z"]] = 1:10
las$NewCol = 0
las[["NewCol"]] = 0
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.