arrange: Arrange rows by variables

Description Usage Arguments Value Examples

Description

Arrange rows by variables

Usage

1
2
3
4
## S3 method for class 'FDF'
arrange(.data, ..., .by_group = FALSE, method = "radix")

arrange(.data, ...)

Arguments

.data

A FDF.

...

Comma separated list of unquoted variable names, or expressions involving variable names. Use desc() to sort a variable in descending order.

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

method

the method to be used: partial matches are allowed. The default ("auto") implies "radix" for short numeric vectors, integer vectors, logical vectors and factors. Otherwise, it implies "shell". For details of methods "shell", "quick", and "radix", see the help for sort.

Value

An object of the same class as .data.

Examples

1
2
3
test <- FDF(datasets::iris)
test2 <- arrange(test, Sepal.Length)
test3 <- arrange(test, Species, desc(Sepal.Length))

privefl/bigdfr documentation built on May 20, 2019, 9:39 a.m.