expand_slp: Expand Slope object to calculate slope and elevation at...

View source: R/Slope.R

expand_slpR Documentation

Expand Slope object to calculate slope and elevation at specific distances

Description

This function will calculate the slope and elevation of a Slope object for specific distances

Usage

expand_slp(slp, distances = NULL, n = 1001)

Arguments

slp

A Slope object

distances

a numeric vector of distances

n

a positive integer indicating how many equally-spaced distances to calculate. Ignored if distances is provided.

Value

a data.frame containing distance, slope, and elevation

See Also

plot.Slope, integrate_slp, remove_slp_transitions

Examples

slp <- read_slp(system.file("extdata", "071000090603_2.slp", package="WEPPR"))
expand_slp(slp)


jarad/WEPPR documentation built on Nov. 3, 2023, 5:42 a.m.