Learn R Programming

fastplyr (version 0.5.1)

f_rowwise: A convenience function to group by every row

Description

fastplyr currently cannot handle rowwise_df objects created through dplyr::rowwise() and so this is a convenience function to allow you to perform row-wise operations. For common efficient row-wise functions, see the 'kit' package.

Usage

f_rowwise(data, ..., .ascending = TRUE, .cols = NULL, .name = ".row_id")

Value

A row-wise grouped_df.

Arguments

data

data frame.

...

Variables to group by using tidyselect.

.ascending

Should data be grouped in ascending row-wise order? Default is TRUE.

.cols

(Optional) alternative to ... that accepts a named character vector or numeric vector. If speed is an expensive resource, it is recommended to use this.

.name

Name of row-id column to be added.