Learn R Programming

geeLite (version 1.0.2)

process_vector: Process Marked Vector

Description

Generates a list categorizing items based on their marks: items to be added ('+'), items to be dropped ('-'), items to be used (unmarked or marked with '+'), and indices of '+' items within the used category.

Usage

process_vector(vector)

Value

A list with the following components:

$add

Items marked with '+'

$drop

Items marked with '-'

$use

Items that are unmarked or marked with '+'

$use_add

TRUE for items marked with '+' within the $use category

Arguments

vector

[mandatory] (character) A character vector containing elements marked with '+' and '-' prefixes.