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

fun.which.zero

Determine which values are zero.


Description

Returns an integer vector showing the position of zero values in the data.

Usage

fun.which.zero(data)

Arguments

data

A vector of data.

Value

An integer vector showing the position of zero values in the data.

Note

Any missing values will be returned as missing.

Author(s)

Steve Su

See Also

Examples

# Finding where the zeros are in this vector: c(0,1,2,3,4,0,2)
fun.which.zero(c(0,1,2,3,4,0,2))
# Finding where the zeros are in this vector: c(0,1,2,3,NA,0,2)
fun.which.zero(c(0,1,2,3,NA,0,2))

GLDEX

Fitting Single and Mixture of Generalised Lambda Distributions (RS and FMKL) using Various Methods

v2.0.0.7
GPL (>= 3)
Authors
Steve Su, with contributions from: Diethelm Wuertz, Martin Maechler and Rmetrics core team members for low discrepancy algorithm, Juha Karvanen for L moments codes, Robert King for gld C codes and starship codes, Benjamin Dean for corrections and input in ks.gof code and R core team for histsu function.
Initial release
2020-02-04

We don't support your browser anymore

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