% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slopes.R
\name{slope_xyz}
\alias{slope_xyz}
\title{Calculate slopes from XYZ coordinate data}
\usage{
slope_xyz(
  route_xyz,
  fun = slope_matrix_weighted,
  lonlat = TRUE,
  directed = FALSE
)
}
\arguments{
\item{route_xyz}{An sf object or data frame with XYZ coordinates}

\item{fun}{Function for slope calculation (default: slope_matrix_weighted)}

\item{lonlat}{Logical, whether coordinates are longitude/latitude (default: TRUE)}

\item{directed}{Logical, whether to calculate directed slopes (default: FALSE)}
}
\value{
Numeric vector of slope values
}
\description{
Calculates slope gradients from linestring geometries with XYZ coordinates.
}
