Rdocumentation
powered by
Learn R Programming
QICD (version 1.2.0)
allzero:
Description
A logical function to judge if a vector is all zeros. If so, TRUE will be returned; otherwise, FALSE will be returned
Usage
allzero(x)
Arguments
x
a numerical vector
Value
TRUE will be returned if the vector contains all zeros, otherwise, FALSE will be returned
Details
A simple tiny function embedded in
QICD
Examples
Run this code
x=
rep
(
0
,
10
)
allzero(x)
Run the code above in your browser using
DataLab