push_dataset: Adds new datasets to Arena

Description Usage Arguments Value Examples

View source: R/arena.R

Description

Adds data frame to create exploratory data analysis plots

Usage

1
push_dataset(arena, dataset, target, label)

Arguments

arena

live or static arena object

dataset

data frame used for EDA plots

target

name of target variable

label

label of dataset

Value

Updated arena object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library("DALEX")
library("arenar")
library("dplyr", quietly=TRUE, warn.conflicts = FALSE)
# create live arena with only one dataset
apartments <- DALEX::apartments
arena <- create_arena(live=TRUE) %>% push_dataset(apartments, "m2.price", "apartment")
print(arena)
# add another dataset
HR <- DALEX::HR
arena <- arena %>% push_dataset(HR, "status", "HR")
print(arena)

arenar documentation built on Oct. 23, 2020, 8:03 p.m.