names_argMax: Extract name from a real vector whose component is the...

Description Usage Arguments Value Examples

View source: R/argMax.R

Description

Extracts an object of class character from a named vector. The component whose name is the extracted one is the maximal component of vector.

Usage

1
names_argMax(numeric_vector)

Arguments

numeric_vector

A vector, each component is a real number (an object of class numeric).

Value

A character, indicating a name of some component of vector. The corresponding component is the minimal component.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
v<-c(11,22,33,22)
names(v)<-c("1-st","2-nd","3-rd","4-th")
names_argMax(v)





v<-c(11,NaN,33,22)
names(v)<-c("1-st","2-nd","3-rd","4-th")
names_argMax(v)






## Not run: 


 f <- fit_Bayesian_FROC(
                         ite  = 111,
                          cha = 1,
                     dataList = d)


 a <- summary(f)$summary[,"Rhat"]

 names_argMax(a)





## End(Not run)

BayesianFROC documentation built on Jan. 23, 2022, 9:06 a.m.