as_entityset: Create entityset and entity from data frame.
Description
Create an entityset with a selected `data.frame` as an entity.
Usage
as_entityset(.data, id = "entityset", index = NA, time_index = NULL,
entity_id = "df1", ...)
Arguments
.data
The `data.frame` to be added as an entity to entityset.
id
The id of this entityset.
index
Name of id column in the dataframe.
time_index
Name of the time column in the dataframe.
entity_id
An identifier for this entity.
...
Additional variables passed to `add_entity`.
Value
A modified entityset.
Examples
Run this code# NOT RUN {
as_entityset(cars, index = "row_number")
# }
Run the code above in your browser using DataLab