R/unselection.R

Defines functions unselection.wizardgtfs unselection.wizardgtfs_selected unselection

Documented in unselection

#' @rdname selection
#' @aliases unselection
#' @export

unselection <- function(gtfs){
  UseMethod('unselection')
}

#' @exportS3Method GTFSwizard::unselection wizardgtfs_selected
unselection.wizardgtfs_selected <- function(gtfs){
  attributes(gtfs) <- attributes(gtfs)[names(attributes(gtfs))%nin%c('selection','selection_expr')]
  class(gtfs) <- c('wizardgtfs','gtfs','list')
  return(gtfs)
}

#' @exportS3Method GTFSwizard::unselection wizardgtfs
unselection.wizardgtfs <- function(gtfs){
  message('There is no selection on the gtfsect')
  return(gtfs)
}

Try the GTFSwizard package in your browser

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

GTFSwizard documentation built on April 4, 2025, 4:10 a.m.