group_data: Grouping metadata

Description Usage Arguments Examples

View source: R/group_data.R

Description

See context for equivalent functions that return values for the current group.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

.data, .tbl, x

A data frame or extension (like a tibble or grouped tibble).

...

Use of ... is now deprecated; please use group_by() first instead.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Example output

Attaching package:dplyrThe following objects are masked frompackage:stats:

    filter, lag

The following objects are masked frompackage:base:

    intersect, setdiff, setequal, union

character(0)
<list_of<integer>[1]>
[[1]]
[1] 1 2 3 4

# A tibble: 1 x 1
        .rows
  <list<int>>
1         [4]
[1] 1 1 1 1
[1] "x"
<list_of<integer>[2]>
[[1]]
[1] 1 2

[[2]]
[1] 3 4

# A tibble: 2 x 2
      x       .rows
* <dbl> <list<int>>
1     1         [2]
2     2         [2]
[1] 1 1 2 2

dplyr documentation built on June 19, 2021, 1:07 a.m.