powered by
Filter a dataframe by slicing off specified rows and returns the result along with tidyverse code used to generate it.
filterRows(.data, rows)
filtered dataframe with tidyverse code attached
a dataframe or a survey design object to filter
a numeric vector of row numbers to slice off
Owen Jin
code
filtered <- filterRows(iris, rows = c(1,4,5)) cat(code(filtered)) head(filtered)
Run the code above in your browser using DataLab