index_by: Index by keys preserving order

View source: R/dplyrx.R

index_byR Documentation

Index by keys preserving order

Description

Add indices by key columns while preserving order according to the first occurence

Usage

index_by(.data, ...)

Arguments

keys

in select semantics

Examples

tibble(x=c(1,1,1,2), y=c("B", "A", "B", "B"), z="foo") %>%
  index_by(x,y)

thackl/thacklr documentation built on Oct. 16, 2023, 9:15 p.m.