apply_grooming_rule: apply_grooming_rule

View source: R/grooming.R

apply_grooming_ruleR Documentation

apply_grooming_rule

Description

apply_grooming_rule

Usage

apply_grooming_rule(df, index, keep_NA = TRUE)

Arguments

df

the df we are manipulating

index

a conditional index length(index) == nrow(df). TRUE means it stays, FALSE means it is being excluded from

keep_NA

if index has NA's and this is true then they stay in the data

Details

will remove rows from a data frame based on the conditional vector index.

Value

a modified version of df with the FALSE values from 'index' removed


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.