R/monitor_reorder.R

Defines functions monitor_reorder

Documented in monitor_reorder

#' @keywords ws_monitor
#'
#' @export
#'
#' @title Reorder a ws_monitor bject
#'
#' @param ws_monitor \emph{ws_monitor} object
#' @param monitorIDs Optional vector of monitor IDs used to reorder the meta and
#' data dataframes.
#' @param dropMonitors Logical specifying whether to remove monitors with no data.
#'
#' @return A \emph{ws_monitor} object reordered to match \code{monitorIDs}.
#'
#' @description This function is a convenience function that merely wraps the
#' \link{monitor_subset} function which reorders as well as subsets.

monitor_reorder <- function(
  ws_monitor,
  monitorIDs = NULL,
  dropMonitors = FALSE
) {

  return( monitor_subset(ws_monitor,
                         monitorIDs = monitorIDs,
                         dropMonitors = dropMonitors) )

}

Try the PWFSLSmoke package in your browser

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

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.