without_na: Remove NA's

Description Usage Arguments Details Value

Description

Return the given dataframe without the rows where one of the independent variables (extracted from formula) are NA

Usage

1
without_na(data, selection)

Arguments

data

dataframe with the data

selection

column names or formula with dependent and independent variables

Details

This is useful to link abundances to the model datasets, since the built models internally exclude those rows

Value

A dataframe without NA's in the columns holded by independent variables of the formula


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.