Learn R Programming

datadr (version 0.8.6.1)

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 ddf setAttributes(obj, attrs)

# S3 method for ddo setAttributes(obj, attrs)

getAttribute(obj, attrName)

getAttributes(obj, attrNames)

# S3 method for ddf getAttributes(obj, attrNames)

# S3 method for ddo getAttributes(obj, attrNames)

hasAttributes(obj, ...)

# S3 method for 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
# NOT RUN {
d <- divide(iris, by = "Species")
getAttribute(d, "keys")
# }

Run the code above in your browser using DataLab