Type: Package
Title: Data Frames with Persistent Columns and Attributes
Version: 0.1.2
Description: Provides data frames that hold certain columns and attributes persistently for data processing in 'dplyr'.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.2.3
Imports: dplyr, ellipsis, generics, pillar, purrr, rlang, tibble, tidyselect, vctrs
Suggests: covr, testthat (≥ 3.0.0)
Config/testthat/edition: 3
URL: https://github.com/UchidaMizuki/stickyr
BugReports: https://github.com/UchidaMizuki/stickyr/issues
NeedsCompilation: no
Packaged: 2023-03-26 12:45:19 UTC; Mizuki
Author: Mizuki Uchida [aut, cre]
Maintainer: Mizuki Uchida <uchidamizuki@vivaldi.net>
Repository: CRAN
Date/Publication: 2023-03-26 17:20:06 UTC

Coerce objects to sticky tibble

Description

'as_sticky_tibble' turns an object to a sticky tibble ('sticky_tbl_df').

Usage

as_sticky_tibble(x, ...)

Arguments

x

An object.

...

Unused, for extensibility.

Value

A sticky tibble ('sticky_tbl_df') object.


Test if the object is a sticky tibble

Description

Test if the object is a sticky tibble

Usage

is_sticky_tibble(x)

Arguments

x

An object

Value

TRUE if an object inherits from sticky_tbl_df, sticky_grouped_df or sticky_rowwise_df class.


Constructs a tibble with persistent columns and attributes

Description

new_sticky_tibble constructs a tibble with persistent columns and attributes. These persistent columns can be hidden.

Usage

new_sticky_tibble(
  x = list(),
  cols = NULL,
  col_show = tidyselect::everything(),
  col_summary = list(),
  attrs = character(),
  ...,
  class = character(),
  class_grouped_df = class,
  class_rowwise_df = class
)

Arguments

x

A tibble-like object.

cols

Columns to be kept persistently.

col_show

Which persistent columns to show? By default, all are displayed.

col_summary

A named list of functions to summarise persistent columns.

attrs

Names of attributes to be kept persistently.

...

Additional attributes.

class

Subclasses.

class_grouped_df

Subclasses of grouped_df. By default, it is the same as class.

class_rowwise_df

Subclasses of rowwise_df. By default, it is the same as class.

Value

A sticky tibble (sticky_tbl_df) object.


Objects exported from other packages

Description

These objects are imported from other packages. Follow the links below to see their documentation.

dplyr

filter

generics

intersect, setdiff, union