commit c31b90dd23c7e3e7f8e5852285df0548736045d3
parent 960d4fc75ae0db5f61adb711508424d0837be927
Author: eamoncaddigan <eamon.caddigan@gmail.com>
Date: Thu, 12 May 2016 15:43:25 -0400
"Bearing", NOT "heading"!
Diffstat:
4 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/NAMESPACE b/NAMESPACE
@@ -3,6 +3,6 @@
export(coordsToBearing)
export(distanceFromPath)
export(identifyAltitudeChanges)
-export(identifyHeadingChanges)
+export(identifyBearingChanges)
export(maxDistanceFromPath)
export(parseCoordinates)
diff --git a/R/identifyManeuvers.R b/R/identifyManeuvers.R
@@ -3,15 +3,15 @@
#'
#' @param trajectory A matrix or SpatialPoints object indicating the trajectory
#' of an aircraft.
-#' @param hiThresh A heading change (in degrees); any time point associated with
-#' a change in heading greater than this value will definitely be labeled a
+#' @param hiThresh A bearing change (in degrees); any time point associated with
+#' a change in bearing greater than this value will definitely be labeled a
#' turn.
#'
#' @return A logical vector indicating whether each timepoint can be considered
#' a turn.
#'
#' @export
-identifyHeadingChanges <- function(trajectory, hiThresh) {
+identifyBearingChanges <- function(trajectory, hiThresh) {
bearings <- coordsToBearing(trajectory)
bearings[length(bearings)] <- bearings[length(bearings)-1]
diff --git a/man/identifyBearingChanges.Rd b/man/identifyBearingChanges.Rd
@@ -0,0 +1,26 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/identifyManeuvers.R
+\name{identifyBearingChanges}
+\alias{identifyBearingChanges}
+\title{Identify the timepoints in a trajectory that correspond to a change in
+commanded heading.}
+\usage{
+identifyBearingChanges(trajectory, hiThresh)
+}
+\arguments{
+\item{trajectory}{A matrix or SpatialPoints object indicating the trajectory
+of an aircraft.}
+
+\item{hiThresh}{A bearing change (in degrees); any time point associated with
+a change in bearing greater than this value will definitely be labeled a
+turn.}
+}
+\value{
+A logical vector indicating whether each timepoint can be considered
+ a turn.
+}
+\description{
+Identify the timepoints in a trajectory that correspond to a change in
+commanded heading.
+}
+
diff --git a/man/identifyHeadingChanges.Rd b/man/identifyHeadingChanges.Rd
@@ -1,26 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/identifyManeuvers.R
-\name{identifyHeadingChanges}
-\alias{identifyHeadingChanges}
-\title{Identify the timepoints in a trajectory that correspond to a change in
-commanded heading.}
-\usage{
-identifyHeadingChanges(trajectory, hiThresh)
-}
-\arguments{
-\item{trajectory}{A matrix or SpatialPoints object indicating the trajectory
-of an aircraft.}
-
-\item{hiThresh}{A heading change (in degrees); any time point associated with
-a change in heading greater than this value will definitely be labeled a
-turn.}
-}
-\value{
-A logical vector indicating whether each timepoint can be considered
- a turn.
-}
-\description{
-Identify the timepoints in a trajectory that correspond to a change in
-commanded heading.
-}
-