find.sub.argmin: Get the index of the smallest dimension apart from an index

View source: R/utils.R

find.sub.argminR Documentation

Get the index of the smallest dimension apart from an index

Description

Get the index of the smallest dimension apart from an index

Usage

find.sub.argmin(nums, idx, seed = NULL)

Arguments

nums

A vector of numbers

idx

An index to be excluded

seed

(Optional) If provided, used to seed the random sampling (for reproducibility).

Value

The index of the second smallest dimension (as an integer).

Examples

nums <- c(1,3,2)
find.sub.argmin(nums,1)
## return 3

nums <- c(1,1,2)
find.sub.argmin(nums,1)
## return 2

argminCS documentation built on Aug. 8, 2025, 7:51 p.m.