datadr (version 0.8.4)

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

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

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

Run this code
d <- divide(iris, by = "Species")
getAttribute(d, "keys")

Run the code above in your browser using DataLab