powered by
The dataset is converted into a three-column long format with columns s for subject, p for predicate and o for object.
s
p
o
dataset_to_triples(x, idcol = NULL)
The long form version of the original dataset, retaining the attributes and class.
An R object that contains the data of the dataset (a data.frame or inherited from data.frame), for example, dataset_df().
data.frame
dataset_df()
The identifier column. If idcol is NULL it attempts to use the row.names(df) as an idcol.
idcol
NULL
row.names(df)
dataset_to_triples(iris_dataset)
Run the code above in your browser using DataLab