Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

signTabulate

Calculates the number of negative, zero, positive and missing values


Description

Calculates the number of negative, zero, positive and missing values in a numeric vector. For double vectors, the number of negative and positive infinite values are also counted.

Usage

signTabulate(x, idxs = NULL, ...)

Arguments

x

a numeric vector.

idxs

A vector indicating subset of elements to operate over. If NULL, no subsetting is done.

...

Not used.

Value

Returns a named numeric vector.

Author(s)

Henrik Bengtsson

See Also

sign().


matrixStats

Functions that Apply to Rows and Columns of Matrices (and to Vectors)

v0.58.0
Artistic-2.0
Authors
Henrik Bengtsson [aut, cre, cph], Constantin Ahlmann-Eltze [ctb], Hector Corrada Bravo [ctb], Robert Gentleman [ctb], Jan Gleixner [ctb], Peter Hickey [ctb], Ola Hossjer [ctb], Harris Jaffee [ctb], Dongcan Jiang [ctb], Peter Langfelder [ctb], Brian Montgomery [ctb], Hugh Parsonage [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.