droplevels,data.frame-method: #' Drop Unused Levels from Vectors
#'
#' This is an additional method that allows for more convenient programming:
#' If a vector (annotated or not) is not a factor, do not change anything.
#' @param x An atomic vector or annotated vector.
#' @return x, unchanged.
#' @keywords internal
Description
setMethod(
f = "droplevels"
, signature = "vector"
, definition = function(x)
x
)
Usage
# S4 method for data.frame
droplevels(x, except = NULL, exclude)
Arguments
x
An atomic vector or annotated vector.
Details
Drop Unused Levels from Data Frames
This is a copy from the S3-method from the base package.