Displays a Count of Negative Values and NAs for a Matrix or Data Frame

Description

Displays a table of the counts of negative values, indicating less than the detection limit, and NAs to support the preparation of a NGR Report Table of summary statistics. The table for numerial columns in the matrix or data frame displays the variable name, the number of NAs and the number of negative values, and the number of times the value in coded occurs.

Usage

1
gx.ngr.ltdl(xmat, vars, coded = -9999)

Arguments

xmat

name of the matrix or data frame.

vars

the indices, or names, of the columns of the matrix or data frame for the variables for which counts are to be displayed. By default, i.e. vars is undefined, counts for all numeric columns are displayed.

coded

a coded value, default -9999 whose occurrence will be counted. In some data sets values greater than the upper limit of quantification are set to such a coded value.

Examples

1
2
3
4
5
## Make test data available
data(fix.test)

## Generate table of counts 
gx.ngr.ltdl(fix.test)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.