Description Usage Arguments Value Examples
Move rows to the last rows of data frame given a column value
1 | mvRowsToLast(data, col, regex = "unclassified", ignore.case = TRUE)
|
data |
A data frame. |
col |
The column, which can be a string (column name) or number (index of the column). |
regex |
Regular expression for |
ignore.case |
Refer to |
The data frame of rows moved to the last.
1 2 3 4 | # move all rows having "unclassified" phyla to the last rows
data <- mvRowsToLast(data, "phylum")
# move all rows having exctly mathced "Bacteria" in column 1 to the last rows
data <- mvRowsToLast(data, 1, regex="^Bacteria$")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.