prune_rows_from_df: Prune single-value rows from a data frame

View source: R/operations.R

prune_rows_from_dfR Documentation

Prune single-value rows from a data frame

Description

Given a data.frame and an integer value, it checks whether there is a row vector whose values match the given one. If so, it prunes that single-valued row from the data.frame

Usage

prune_rows_from_df(df, value)

Arguments

df

data.frame

value

an integer value

Value

the row-pruned data.frame

Examples

df = data.frame(c(0,0,0), c(0,1,0), c(1,0,0))
prune_rows_from_df(df, value = 0)


bblodfon/usefun documentation built on Sept. 17, 2023, 4:37 p.m.