removeFromDimension: 'RemoveAt'

View source: R/removeat.R

removeFromDimensionR Documentation

RemoveAt

Description

Removes one or more elements from an object. Dimensions are never If all elements are removed from a vector, then a 0-length vector is returned.

Usage

removeFromDimension(
  x,
  at = NULL,
  MARGIN = 1L,
  ignore.case = TRUE,
  split = NULL
)

Arguments

x

The object from which the elements are to be removed.

at

A vector or indicating which elements are to be removed. When at is character elements with this name are removed. When at is integer, elements with this position are removed. If MARGIN contains two or more values, at may be a list, where each element of the list contains a vector.

MARGIN

An vector of integers giving the dimensions from which elements should be removed.

ignore.case

Ignores case if and when removing elements based on their names.

split

Character delimiter to split at when at is a character. Default is NULL which means that no splitting occurs. See strsplit.

Value

An object of the same class as x.


NumbersInternational/flipU documentation built on March 2, 2024, 10:55 a.m.