do_counts: Compute pairwise defined counts

View source: R/do_counts.R

do_countsR Documentation

Compute pairwise defined counts

Description

Compute how many columns in a data set are pairwise defined for each combination of two rows. Given a selection of two rows, a column is pairwise defined if its elements are defined for both rows (i.e. neither row has NA for that column).

Usage

do_counts(fr)

Arguments

fr

A data frame.

Details

This code incorporates suggestions by Bill Venables (see Jan 2014 archive at https://list.science.auckland.ac.nz/sympa/arc/stat-rdownunder).

Value

A square matrix giving the number of pairwise defined columns for every combination of two rows.


tjfinney/ANTTV documentation built on July 1, 2024, 11 p.m.