add_entity: add_entity

Description Usage Arguments Value Examples

View source: R/add_entity.R

Description

Add an entity to an entityset.

Usage

1
2
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

1
2
3
4
5
library(magrittr)
create_entityset("set") %>%
  add_entity(df = cars,
             entity_id = "cars",
             index = "row_number")

featuretoolsR documentation built on April 25, 2020, 5:05 p.m.