| arrange | R Documentation |
Sort rows by column values
arrange(.data, ...)
.data |
A |
... |
Column names (unquoted). Wrap in |
Uses an external merge sort with a 1 GB memory budget. When data exceeds
this limit, sorted runs are spilled to temporary .vtr files and merged
via a k-way min-heap. NAs sort last in ascending order.
This is a materializing operation.
A new vectra_node with sorted rows.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> arrange(desc(mpg)) |> collect() |> head()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.