codeU: Code Censored Values

View source: R/codeU.R

codeUR Documentation

Code Censored Values

Description

Recodes censored data to u-scores, which is the sum of the sign of the differences beween each value and all other values. It is equivalent to the rank but scaled so the the mean is 0.

Usage

codeU(...)

## Default S3 method:
codeU(...)

## S3 method for class 'data.frame'
codeU(...)

Arguments

...

either a data frame that contains columns of class "qw" or any combination of individual vectors of class "numeric," "lcens," or "qw." Missing values are removed before processing.

Value

A data frame containing the u-coded values. The column names are taken from ...; the rownames are derived from the sequential numbers of the original data.


USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.