-
Notifications
You must be signed in to change notification settings - Fork 2
/
trip-deprecated.R
48 lines (42 loc) · 1.21 KB
/
trip-deprecated.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#' 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")
}