indicesToRetain: indicesToRetain

View source: R/removeat.R

indicesToRetainR Documentation

indicesToRetain

Description

Worker function for RemoveAt.

Usage

indicesToRetain(names, at, length.x, ignore.case = TRUE, split = NULL)

Arguments

names

The names of the elements.

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.

length.x

The length of the object that is to be subscripted.

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.


Displayr/flipU documentation built on March 2, 2024, 4:35 a.m.