filterRows {iNZightTools} | R Documentation |
Filter a dataframe by slicing off specified rows and returns the result along with tidyverse code used to generate it.
filterRows(.data, rows)
.data |
a dataframe or a survey design object to filter |
rows |
a numeric vector of row numbers to slice off |
filtered dataframe with tidyverse code attached
Owen Jin
filtered <- filterRows(iris, rows = c(1,4,5))
cat(code(filtered))
head(filtered)