attrs_order: Relational data attribute order

View source: R/shared_class_functions.r

attrs_orderR Documentation

Relational data attribute order

Description

Generic function, fetching attribute order for relational objects.

Usage

attrs_order(x, ...)

attrs_order(x, ...) <- value

Arguments

x

an R object, such as a functional_dependency, relation_schema, relation, database_schema, or database object.

...

further arguments passed on to methods.

value

A character vector of the same length as attrs_order(x, ...).

Details

All classes in autodb contain an attrs_order attribute. It gives an easy way to find a list of all attributes/variables involved in an object, but its main purpose is to also assign those attributes a consistent order when printing or plotting the object.

Value

A character vector, giving attributes in the order in which they're prioritised for sorting within x.


autodb documentation built on April 4, 2025, 5:12 a.m.