pair_them_shits: pair_them_shits function

View source: R/format.R

pair_them_shitsR Documentation

pair_them_shits function

Description

Given a wide dataset and a vector of variable names this function performs pairwise deletion of records on the given variables. That is, it will return a subset of the given dataframe where there are no na's in any of the given variables thus leaving a dataset where only fully paired observations are present.

Usage

pair_them_shits(d, pairvars)

Arguments

d

dataframe that you want limited to paired observations

pairvars

vector of quoted variable names in the dataset to be evaluated for pairwise completion.

Examples

pair_them_shits()


clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.