is.lengths: Object test for lengths class

is.lengthsR Documentation

Object test for lengths class

Description

Function to test if an object is of the class lengths.

Usage

is.lengths(object)

Arguments

object

object to be tested.

Details

The function returns TRUE if and only if its argument is a lengths object.

Value

A logical value.

Author(s)

Luca Sartore drwolf85@gmail.com

See Also

getlen

Examples


data(ACM)
direction <- c(0,0,1)
     
# Compute the appertaining directional line for each location
loc.id <- which_lines(ACM[, 1:3], direction)
     
# Estimate stratum lengths
gl <- getlen(ACM$MAT3, ACM[, 1:3], loc.id, direction)

# Test the object gl
is.lengths(gl)


spMC documentation built on May 3, 2023, 9:13 a.m.