R/trip-deprecated.R

Defines functions as.trip.SpatialLinesDataFrame as.ltraj.trip trip.split.exact

Documented in as.ltraj.trip as.trip.SpatialLinesDataFrame trip.split.exact

#' Deprecated functions in trip
#' 
#' These functions will be declared defunct in a future release.
#' 
#' @name trip.split.exact
#' @aliases trip-deprecated trip.split.exact as.trip.SpatialLinesDataFrame
#' tripTransform as.ltraj.trip
#' @param x see \code{\link{cut.trip}}
#' @param dates see \code{\link{cut.trip}}
#' @param from trip object
#' @seealso
#' 
#' \code{\link{cut.trip}}, \code{\link{as.Other}}
#' 
NULL

#' @rdname trip.split.exact
#' @export
as.SpatialLinesDataFrame.trip <- function (from) 
  {
    .Deprecated('as(x, "SpatialLinesDataFrame")')
    as(from, "SpatialLinesDataFrame")
  }

#' @rdname trip.split.exact
#' @export
trip.split.exact <- function(x, dates) {
  .Deprecated("cut.trip")
  cut(x, dates)
}

#' @rdname trip.split.exact
#' @param  xy \code{trip} object
#' @export
as.ltraj.trip <- function(xy) {
  .Deprecated('as(x, "ltraj")')
  as(xy, "ltraj")
}

##' @rdname trip.split.exact
##' @export
as.trip.SpatialLinesDataFrame <- function(from) {
  .Deprecated('as(x, "SpatialLinesDataFrame") or explode(x) ... the original definition was an error, there is no general coercion method available for SpatialLinesDataFrame=>trip')

  ##as.SpatialLinesDataFrame.trip(from)
  as(from, "SpatialLinesDataFrame")
}

Try the trip package in your browser

Any scripts or data that you put into this service are public.

trip documentation built on July 9, 2023, 7:29 p.m.