R: Remove rows with NA in covariates, but keep genotypes with...

na.geno.keep {haplo.stats} | R Documentation

## Remove rows with NA in covariates, but keep genotypes with NAs

### Description

Removes rows with NA in response or covariates, but keeps subjects with NAs in their genotypes if not missing all alleles.

### Usage

    na.geno.keep(m)

### Arguments

`m` | model matrix

### Value

a model matrix with rows removed if exclusion criteria requires it

[Package haplo.stats version 1.7.9 Index]