dataset_to_triples {dataset} | R Documentation |
Dataset to triples (three columns)
Description
The dataset is converted into a three-column long format with
columns s
for subject, p
for predicate and o
for
object.
Usage
dataset_to_triples(x, idcol = NULL)
Arguments
x |
An R object that contains the data of the dataset (a data.frame or
inherited from |
idcol |
The identifier column. If |
Value
The long form version of the original dataset, retaining the attributes and class.
Examples
dataset_to_triples(orange_df)
[Package dataset version 0.3.9 Index]