pibble_methods: pibble methods

Description Usage Arguments Details

Description

These are variants of existing functions that are designed to retain the pibble status of the object, as well as its .i, .t, and .d attributes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S3 method for class 'tbl_pb'
mutate(.data, ...)

## S3 method for class 'tbl_pb'
distinct(.data, ..., .keep_all = FALSE)

## S3 method for class 'tbl_pb'
group_by(.data, ...)

## S3 method for class 'tbl_pb'
ungroup(x, ...)

## S3 method for class 'tbl_pb'
select(.data, ...)

## S3 method for class 'tbl_pb'
rename(.data, ...)

## S3 method for class 'tbl_pb'
summarize(.data, ...)

## S3 method for class 'tbl_pb'
summarise(.data, ...)

## S3 method for class 'tbl_pb'
transmute(.data, ...)

Arguments

.data, x

These functions take a tbl_pb (i.e. pibble) object as input

.keep_all, ...

Other parameters to be passed to the relevant functions

Details

Some functions that already preserve pibble status and so don't need special methods include:

dplyr::add_row(), tibble:add_column(), dplyr::arrange(), dplyr::bind_cols(), dplyr::filter(), dplyr::sample_frac(), dplyr::sample_n(), dplyr::slice(), dplyr::top_n

as well as all scoped variants (_all, _if, _at) of dplyr functions.

dplyr::bind_rows() is currently not supported. If you use dplyr::bind_rows() you should pipe it to as_pibble().

Any function that takes two data frames/tibbles as inputs will retain the panel structure of the first argument.

If a function is not on the above list or elsewhere in this help file, then you may need to re-as_pibble your object after using the function.


NickCH-K/pmdplyr documentation built on Oct. 26, 2021, 1:10 p.m.