Learn R Programming

relations (version 0.6-13)

table: Relation Table

Description

Returns a tabular representation of a relation like a “view” of a relational database table.

Usage

relation_table(x, memberships = TRUE)

Value

An object of class relation_table, inheriting from class

data.frame.

Arguments

x

an object inheriting from class relation.

memberships

logical; should membership vector (if any) be added to the table?

See Also

relation_join()

Examples

Run this code
R <- data.frame(Name = c("David", "John"),
                Age = c(33, 66),
                stringsAsFactors = FALSE)
R <- as.relation(R)
relation_table(R)

Run the code above in your browser using DataLab