remove_rows | R Documentation |
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.
remove_rows(data, rows)
data |
A dataframe or a survey design object to be filtered. |
rows |
A numeric vector of row numbers to be sliced off. |
A filtered dataframe with the tidyverse code attached.
Owen Jin, Zhaoming Su
code
data <- remove_rows(iris, rows = c(1, 4, 5))
cat(code(data))
head(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.