the_row_number_of_logical_vector: Extract the row number from a logical vector

Description Usage Arguments Value Author(s) Examples

View source: R/the_row_number_of_logical_vector.R

Description

Extract the row number from a logical vector

Usage

1

Arguments

vector.logical

vector with logical component

Value

the row number of logical component

Author(s)

Issei Tsunoda

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 a <-c(TRUE,FALSE,FALSE,TRUE,TRUE)


 b <-  the_row_number_of_logical_vector(a)

# Then, return value object, b is a vector of

#> b
#  1, 4, 5

# From this, we can count the TRUE, as following manner:

 Number.of.TRUE <- length(b)

# Of course, it is:
#> Number.of.TRUE
#  3

length(b) == sum(a)

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