ddo-ddf-attributes: Managing attributes of 'ddo' or 'ddf' objects

Description Usage Arguments Examples

Description

These are called internally in various datadr functions. They are not meant for use outside of there, but are exported for convenience, and can be useful for better understanding ddo/ddf objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
setAttributes(obj, attrs)

## S3 method for class 'ddf'
setAttributes(obj, attrs)

## S3 method for class 'ddo'
setAttributes(obj, attrs)

getAttribute(obj, attrName)

getAttributes(obj, attrNames)

## S3 method for class 'ddf'
getAttributes(obj, attrNames)

## S3 method for class 'ddo'
getAttributes(obj, attrNames)

hasAttributes(obj, ...)

## S3 method for class 'ddf'
hasAttributes(obj, attrNames)

Arguments

obj

'ddo' or 'ddf' object

attrs

a named list of attributes to set

attrName

name of the attribute to get

attrNames

vector of names of the attributes to get

...

additional arguments

Examples

1
2
d <- divide(iris, by = "Species")
getAttribute(d, "keys")

datadr documentation built on May 1, 2019, 8:06 p.m.