dropNAs: Removes all rows from a dataframe based on columns that...

View source: R/dropNAs.R

dropNAsR Documentation

Removes all rows from a dataframe based on columns that contain NAs.

Description

Removes all rows from a dataframe where the value in any column specified in "factors" contains an NA.

Usage

dropNAs(df, factors)

Arguments

df
  • input dataframe (or object that can be cast to a dataframe)

factors
  • vector of desired column names from df to sort by

Value

dataframe without NAs in factor columns


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.