tribe: Object attribute list

Description Usage Arguments Value See Also Examples

View source: R/tribe.R

Description

The function tribe is identical to attributes, expect that it always returns a named list (thus, when attributes will return NULL, tribe will return an empty named list).

Usage

1
2
3
4
5
tribe(obj, keep_obj = FALSE)

tribe(obj) <- value

untribe(x)

Arguments

obj

An object.

keep_obj

logical. If TRUE, obj is passed as an attribute to the result (useful in combination of untribe).

value

An appropriate named list of attributes, or NULL.

x

A list (of attributes) to be untribed.

Value

A named list, the attributes of obj.

See Also

attributes, attributes<-, mostattributes<-.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(lplyr)
A <- c(x = 1, y = 2, z = 3) 
  at_mutate(package = "trib?")
A 
  tribe(keep_obj = TRUE) 
  mutate(package = "tribe") 
  untribe()

## End(Not run)

paulponcet/tribe documentation built on Nov. 24, 2019, 10:08 p.m.