count_logical {hutilscpp}R Documentation

Count logicals

Description

Count the number of FALSE, TRUE, and NAs.

Usage

count_logical(x, nThread = getOption("hutilscpp.nThread", 1L))

Arguments

x

A logical vector.

nThread

Number of threads to use.

Value

A vector of 3 elements: the number of FALSE, TRUE, and NA values in x.


[Package hutilscpp version 0.10.4 Index]