tibbled: Tibbled version of base R functions

rle_dfR Documentation

Tibbled version of base R functions

Description

rle_df() returns a tibbled rle.

rle_ranges() returns an IRanges-like tibble.

table_df() returns a tibbled table.

tabulate0_df() is a tabulated variant of table_df().

tabulate0() is a variant of tabulate() to count integers including zero.

Usage

rle_df(x)

rle_ranges(...)

table_df(..., name = "n")

tabulate0_df(..., name = "n")

tabulate0(bin, nbins = max(1L, bin, na.rm = TRUE))

Arguments

x, ...

Atomic vector

name

The name of the new column in the output.

bin

a numeric vector (of positive integers), or a factor. Long vectors are supported.

nbins

the number of bins to be used.

See Also

rle()

table(), dplyr::count()

tabulate()


heavywatal/rwtl documentation built on April 29, 2024, 2:02 a.m.