$<-,LAS-method

0th

Percentile

Inherited but modified methods from sp

LAS* objects are Spatial objects so they inherit several methods from sp. 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.

Usage
# S4 method for LAS
$(x, name) <- value

# S4 method for LAS,ANY,missing [[(x, i, j) <- value

# S4 method for LAScatalog,ANY,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for LAScatalog,ANY,ANY [[(x, i, j) <- value

# S4 method for LAScatalog $(x, name) <- value

Arguments
x

A LAS* object

name

A literal character string or a name (possibly backtick quoted).

value

typically an array-like R object of a similar class as x.

i

string, name of elements to extract or replace.

j

Unused.

...

Unused

drop

Unused

Aliases
  • $<-,LAS-method
  • [[<-,LAS,ANY,missing-method
  • [,LAScatalog,ANY,ANY-method
  • [[<-,LAScatalog,ANY,ANY-method
  • $<-,LAScatalog-method
Examples
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)

las$Z = 2L
las[["Z"]] = 1:10
las$NewCol = 0
las[["NewCol"]] = 0
# }
Documentation reproduced from package lidR, version 2.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.