Learn R Programming

BayesianFROC (version 1.0.0)

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

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

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

Run this code
# NOT RUN {



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)




# }
# NOT RUN {
# }

Run the code above in your browser using DataLab