Skip to contents

if a number only have zeros

Usage

is.zero(x)

Arguments

x

number

Value

all zero or not

Examples

is.zero(c("0.000", "0.102", NA))
#> [1]  TRUE FALSE    NA