Learn R Programming

featuretoolsR (version 0.4.4)

add_entity: add_entity

Description

Add an entity to an entityset.

Usage

add_entity(entityset, entity_id, df, index = NULL, time_index = NULL,
  ...)

Arguments

entityset

The entity set to modify.

entity_id

The name of the entity to add.

df

The data frame to add as an entity.

index

The index parameter specifies the column that uniquely identifies rows in the dataframe

time_index

Name of the time column in the dataframe.

...

Additional parameters passed to `featuretools.entity_from_dataframe`.

Value

A modified entityset.

Examples

Run this code
# NOT RUN {
library(magrittr)
create_entityset("set") %>%
  add_entity(df = cars,
             entity_id = "cars",
             index = "row_number")
# }

Run the code above in your browser using DataLab