filterRows {iNZightTools}R Documentation

Filter data by row numbers

Description

Filter a dataframe by slicing off specified rows and returns the result along with tidyverse code used to generate it.

Usage

filterRows(.data, rows)

Arguments

.data

a dataframe or a survey design object to filter

rows

a numeric vector of row numbers to slice off

Value

filtered dataframe with tidyverse code attached

Author(s)

Owen Jin

See Also

code

Examples

Run examples

filtered <- filterRows(iris, rows = c(1,4,5))
cat(code(filtered))
head(filtered)


[Package iNZightTools version 1.12.2 Index]