remove_rows: Remove rows from data by row numbers

View source: R/filter.R

remove_rowsR Documentation

Remove rows from data by row numbers

Description

This function filters a dataframe or a survey design object by removing specified rows based on the provided row numbers. The resulting filtered dataframe is returned, along with the tidyverse code used to generate it.

Usage

remove_rows(data, rows)

Arguments

data

A dataframe or a survey design object to be filtered.

rows

A numeric vector of row numbers to be sliced off.

Value

A filtered dataframe with the tidyverse code attached.

Author(s)

Owen Jin, Zhaoming Su

See Also

code

Examples

data <- remove_rows(iris, rows = c(1, 4, 5))
cat(code(data))
head(data)


iNZightTools documentation built on Oct. 12, 2023, 5:06 p.m.