Skip to content

Allowing NULL disc.method in the case variables are already discrete#29

Open
DouglasMesquita wants to merge 1 commit intoianstenbit:masterfrom
DouglasMesquita:allow-no-disc.method
Open

Allowing NULL disc.method in the case variables are already discrete#29
DouglasMesquita wants to merge 1 commit intoianstenbit:masterfrom
DouglasMesquita:allow-no-disc.method

Conversation

@DouglasMesquita
Copy link

@DouglasMesquita DouglasMesquita commented Nov 5, 2022

Link to the issue

close #29

How to test the changes

data(iris)

iris$disc1 <- cut(iris$Sepal.Length, breaks = 2, include.lowest = TRUE, right = TRUE)
iris$disc2 <- cut(iris$Petal.Length, breaks = 2, include.lowest = TRUE, right = TRUE)

iris_cat <- iris[c("Species", "disc1", "disc2")]

# no disc.method
prepareTransactions(formula = Species ~ disc1 + disc2, data = iris_cat, disc.method = NULL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant