Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.mixeddata

Convert a vector of values to IAI mixed data format


Description

Julia Equivalent: IAI.make_mixed_data

Usage

as.mixeddata(values, categorical_levels, ordinal_levels = c())

Arguments

values

The vector of values to convert

categorical_levels

The values in values to treat as categoric levels

ordinal_levels

(optional) The values in values to treat as ordinal levels, in the order supplied

Examples

df <- iris
set.seed(1)
df$mixed <- rnorm(150)
df$mixed[1:5] <- NA  # Insert some missing values
df$mixed[6:10] <- "Not graded"
df$mixed <- iai::as.mixeddata(df$mixed, c("Not graded"))

iai

Interface to 'Interpretable AI' Modules

v1.5.0
MIT + file LICENSE
Authors
Jack Dunn [aut, cre], Ying Zhuo [aut], Interpretable AI LLC [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.