sign1: modified sign() fucntion for SKT taking into account missing...

View source: R/sign1.R

sign1R Documentation

modified sign() fucntion for SKT taking into account missing data

Description

differ from sign as it return 0 when x is NA

Usage

sign1(x)

Arguments

x

any number

Value

1 if x > 0 -1 if x < 0 0 if x = 0 or x = NA

Note

used by rkt

Author(s)

Aldo Marchetto

References

Hirsch R.M. & Slack J.R. 1984. A nonparametric test for seasonal data with serial dependance. Water Resources Research, 20: 727-732

See Also

rkt

Examples

a<-1
sign1(a)
a<-NA
sign1(a)

rkt documentation built on May 29, 2024, 7:31 a.m.