Created
May 24, 2021 11:16
-
-
Save axjack/d24a10ebb7cba58b366a903ebb64ff51 to your computer and use it in GitHub Desktop.
View arule's rules via DATAFRAME()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View_rules <- function(rule){ | |
# View arule's rules via DATAFRAME() | |
if( !("arules" %in% (.packages())) ){ | |
stop("Make sure to execute library(arules) at first.") | |
} | |
if( class(rule) != "rules" ){ | |
stop("Pass rules into argument.") | |
} | |
View( arules::DATAFRAME(rule,setStart="",setEnd="") ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment