Learn R Programming

papaja (version 0.1.0.9655)

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.

except

Todo

exclude

Todo

Value

x, unchanged.

Details

Drop Unused Levels from Data Frames

This is a copy from the S3-method from the base package.