as.mixeddata | R Documentation |
Julia Equivalent:
IAI.make_mixed_data
as.mixeddata(values, categorical_levels, ordinal_levels = c())
values |
The vector of values to convert |
categorical_levels |
The values in |
ordinal_levels |
(optional) The values in |
## Not run:
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"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.