Learn R Programming

spMC (version 0.3.15)

print.density.lengths: Printing Empirical Densities Estimates of Stratum Lengths

Description

he function a summary of the empirical density stratum lengths calculated by density.lengths.

Usage

# S3 method for density.lengths
print(x, digits = NULL, ...)

Value

A summary of the empirical distributions is printed on the screen or other output devices. No values are returned.

Arguments

x

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

digits

minimal number of digits, see print.default.

...

further arguments to pass to the function summary.data.frame.

Author

Luca Sartore drwolf85@gmail.com

See Also

density.lengths, plot.density.lengths

Examples

Run this code
# \donttest{
data(ACM)
direction <- c(0,0,1)
     
# Compute the appartaining 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)

# Compute the empirical densities of stratum lengths
dgl <- density(gl)

# Print the empirical densities of stratum lengths
print(dgl)
# }

Run the code above in your browser using DataLab