Learn R Programming

spMC (version 0.3.15)

is.lengths: Object test for lengths class

Description

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

Usage

is.lengths(object)

Value

A logical value.

Arguments

object

object to be tested.

Author

Luca Sartore drwolf85@gmail.com

Details

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

See Also

getlen

Examples

Run this code
# \donttest{
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)

# }

Run the code above in your browser using DataLab