Learn R Programming

spMC (version 0.3.2)

print.lengths: Printing Stratum Lengths for Each Observed Category

Description

The function prints stratum lengths given by getlen.

Usage

## S3 method for class 'lengths':
print(x, ...)

Arguments

Value

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

Rdversion

1.1

See Also

getlen

Examples

Run this code
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