dropNamed: Drop named elements of an object

View source: R/dropNamed.R

dropNamedR Documentation

Drop named elements of an object

Description

Removes named elements from a vector, list, matrix or data frame.

Usage

dropNamed(x, drop = character(0L))

Arguments

x

[any]
Object to drop named elements from. For a matrix or a data frames this function drops named columns via the second argument of the binary index operator [,]. Otherwise, the unary index operator [] is used for dropping.

drop

[character]
Names of elements to drop.

Value

Subset of object of same type as x. The object is not simplified, i.e, no dimensions are dropped as [,,drop = FALSE] is used.


BBmisc documentation built on Nov. 6, 2026, 1:06 a.m.