qwCoalesce | R Documentation |
Constructs a vector with as few missing values as possible from a selected sequence of vectors.
qwCoalesce(..., means = FALSE, lt.tol = 0.1)
... |
any number of objects of class "qw." Missing values are permitted. |
means |
logical, if |
lt.tol |
an arbitrary tolerance metric to drop interval-censoring. See
|
For means
set to FALSE
, an object of class "qw" in which each element
is determined by selecting the first non-missing value in the order in which they are
specified in the argument list. The first step is to construct a matrix from
all arguments. The output is initially set to column 1; for any missing values
in the column, the data from column 2 are used and so on until all columns have
been searched or all missing values replaced. The metadata are set from the
corresponding column.
For means
set to FALSE
, an object of class "qw" computed from the
mean of the nonmissing values in each row of the data specified in ....
The metadata, except for reporting limit information, are set from
the first entry in ....
This function is most useful for creating a column in a dataset from related columns that represent different methods. For example, a single column of alkalinity may be desired when there are multiple columns of alkalinity determined by various methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.