Learn R Programming

spMC (version 0.3.15)

print.lengths: Printing Stratum Lengths for Each Observed Category

Description

The function prints stratum lengths given by getlen.

Usage

# S3 method for lengths
print(x, ...)

Value

Stratum lengths grouped by category are printed on the screen or other output devices. No values are returned.

Arguments

x

an object of the class lengths, typically with the output of the function getlen.

...

further arguments passed to or from other methods.

Author

Luca Sartore drwolf85@gmail.com

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)

# Print stratum lengths
print(gl)
# }

Run the code above in your browser using DataLab