R: Deprecated functions in lidR

deprecated {lidR} | R Documentation

## Deprecated functions in lidR

### Description

These functions are provided for compatibility with older versions of lidR but are deprecated since lidR version 3. They will progressively print a message, throw a warning and eventually be removed. The links below point to the documentation of the new names
lasadd lascheck lasclip lasdetectshape lasfilter lasfiltersurfacepoints lasflightline lasground lasmergespatial lasnormalize laspulse lasrangecorrection lasflightline lasreoffset lasrescale lasscanlines lassmooth lassnags lastrees lasvoxelize sensor_tracking tree_detection tree_hull

### Usage

    lascheck(las)

    lasclip(las, geometry, ...)

    lasclipRectangle(las, xleft, ybottom, xright, ytop, ...)

    lasclipPolygon(las, xpoly, ypoly, ...)

    lasclipCircle(las, xcenter, ycenter, radius, ...)

    lasdetectshape(las, algorithm, attribute = "Shape", filter = NULL)

    lasfilter(las, ...)

    lasfilterfirst(las)

    lasfilterfirstlast(las)

    lasfilterfirstofmany(las)

    lasfilterground(las)

    lasfilterlast(las)

    lasfilternth(las, n)

    lasfiltersingle(las)

    lasfilterdecimate(las, algorithm)

    lasfilterduplicates(las)

    lasfiltersurfacepoints(las, res)

    lasground(las, algorithm, last_returns = TRUE)

    laspulse(las)

    lasflightline(las, dt = 30)

    lasscanline(las)

    lasmergespatial(las, source, attribute = NULL)

    lasnormalize(
      las,
      algorithm,
      na.rm = FALSE,
      use_class = c(2L, 9L),
      ...,
      add_lasattribute = FALSE
    )

    lasunnormalize(las)

    lasrangecorrection(
      las,
      sensor,
      Rs,
      f = 2.3,
      gpstime = "gpstime",
      elevation = "Z"
    )

    lasrescale(las, xscale, yscale, zscale)

    lasreoffset(las, xoffset, yoffset, zoffset)

    lassmooth(
      las,
      size,
      method = c("average", "gaussian"),
      shape = c("circle", "square"),
      sigma = size/6
    )

    lasunsmooth(las)

    lassnags(las, algorithm, attribute = "snagCls")

    lastransform(las, CRSobj)

    lastrees(las, algorithm, attribute = "treeID", uniqueness = "incremental")

    lasadddata(las, x, name)

    lasaddextrabytes(las, x, name, desc)

    lasaddextrabytes_manual(
      las,
      x,
      name,
      desc,
      type,
      offset = NULL,
      scale = NULL,
      NA_value = NULL
    )

    lasremoveextrabytes(las, name)

    lasvoxelize(las, res)

    sensor_tracking(
      las,
      interval = 0.5,
      pmin = 50,
      extra_check = TRUE,
      thin_pulse_with_time = 0.001
    )

    tree_detection(las, algorithm)

    tree_hulls(
      las,
      type = c("convex", "concave", "bbox"),
      concavity = 3,
      length_threshold = 0,
      func = NULL,
      attribute = "treeID"
    )

    hexbin_metrics(...)

### Arguments

`las` | See the new functions that replace the old ones
`geometry` | See the new functions that replace the old ones
`...` | See the new functions that replace the old ones
`xleft, ybottom, xright, ytop` | See the new functions that replace the old ones
`xpoly, ypoly` | See the new functions that replace the old ones
`xcenter, ycenter, radius` | See the new functions that replace the old ones
`algorithm` | See the new functions that replace the old ones
`attribute` | See the new functions that replace the old ones
`filter` | See the new functions that replace the old ones
`n, res, dt` | See the new functions that replace the old ones
`last_returns` | See the new functions that replace the old ones
`source` | See the new functions that replace the old ones
`na.rm, use_class, add_lasattribute` | See the new functions that replace the old ones
`sensor, Rs, f, gpstime, elevation` | See the new functions that replace the old ones
`xscale, yscale, zscale, xoffset, yoffset, zoffset` | See the new functions that replace the old ones
`size, method, shape, sigma` | See the new functions that replace the old ones
`CRSobj` | See the new functions that replace the old ones
`uniqueness` | See the new functions that replace the old ones
`x, name, desc, type, offset, scale, NA_value` | See the new functions that replace the old ones
`interval, pmin, extra_check, thin_pulse_with_time` | See the new functions that replace the old ones
`concavity, length_threshold, func` | See the new functions that replace the old ones

[Package lidR version 3.2.2 Index]