preserving_attr: preserving_attr tag to preserve attributes

Description Usage Arguments Examples

Description

preserving_attr tag to preserve attributes

Usage

1
2
preserving_attr(.arg = 1, .incl_row.names = FALSE,
  .incl_class = FALSE, .incl_names = FALSE, .incl_dim = FALSE)

Arguments

.arg

index or name of argument to preserve

.incl_row.names

wether to include row.names in attributes to preserve

.incl_class

wether to include class in attributes to preserve

.incl_names

wether to include names in attributes to preserve

.incl_dim

wether to include dim in attributes to preserve

Examples

1
2
preserving_attr(.incl_class = TRUE)(purrr::map_dfr)(head(iris,2),identity)
preserving_attr(.incl_class = TRUE, .incl_row.names = TRUE)$lapply(head(iris,2),identity)

moodymudskipper/tags documentation built on June 25, 2019, 10:54 a.m.