arules | Mining Association Rules and Frequent Itemsets with R

 by   mhahsler R Version: arules_1.7-6 License: GPL-3.0

kandi X-RAY | arules Summary

kandi X-RAY | arules Summary

arules is a R library. arules has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

The arules package for R provides the infrastructure for representing, manipulating and analyzing transaction data and patterns using frequent itemsets and association rules. The package also provides a wide range of interest measures and mining algorithms including the code of Christian Borgelt’s popular and efficient C implementations of the association mining algorithms Apriori and Eclat. In addition, the following mining algorithms are available via fim4r:. Code examples can be found in Chapter 5 of the web book R Companion for Introduction to Data Mining.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              arules has a low active ecosystem.
              It has 173 star(s) with 41 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 66 have been closed. On average issues are closed in 100 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of arules is arules_1.7-6

            kandi-Quality Quality

              arules has 0 bugs and 0 code smells.

            kandi-Security Security

              arules has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              arules code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              arules is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              arules releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 14660 lines of code, 0 functions and 2 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of arules
            Get all kandi verified functions for this library.

            arules Key Features

            No Key Features are available at this moment for arules.

            arules Examples and Code Snippets

            No Code Snippets are available at this moment for arules.

            Community Discussions

            QUESTION

            Problems generating tree diagram with hctreemap2
            Asked 2022-Jan-21 at 16:21
            library(highcharter)
            library(dplyr)
            library(viridisLite)
            library(forecast)
            library(treemap)
            
            data("Groceries", package = "arules")
            dfitems <- tbl_df(Groceries@itemInfo)
            
            set.seed(10)
            
            dfitemsg <- dfitems %>%
              mutate(category = gsub(" ", "-", level1),
                     subcategory = gsub(" ", "-", level2)) %>%
              group_by(category, subcategory) %>% 
              summarise(sales = n() ^ 3 ) %>% 
              ungroup() %>% 
              sample_n(31)
            
            
            hctreemap2(group_vars = c("category","subcategory"),
                       size_var = "sales")%>% 
              hc_tooltip(pointFormat = "{point.name}:
            Pop: {point.value:,.0f}
            GNI: {point.colorValue:,.0f}")
            ...

            ANSWER

            Answered 2022-Jan-21 at 16:21

            When I tried your code, it also stated that the function was deprecated and to use data_to_hierarchical. Although, it's never quite that simple, right? I tried multiple ways to get hctreemap2 to work, but wasn't able to discern that issue. From there I turned to the package recommended data_to_hierarchical. Now that worked without an issue--once I figured out the right type, which in hindsight seemed kind-of obvious.

            That being said, this is what I've got:

            Source https://stackoverflow.com/questions/70765457

            QUESTION

            Only show these panels if the plot type is a barplot. R shiny
            Asked 2021-Dec-16 at 20:01

            I want the user to select the type of plot to display.

            In case the type of plot is 'barplot' new selection variables should appear. In this case "binning" and "breaks".

            However, the code below is not working properly. No new variables are display after conditionalPanel.

            Here you have the RepEx.

            ...

            ANSWER

            Answered 2021-Dec-16 at 20:01

            You have to add "input.graph == 'Barplot'" to the conditions. These conditions are not R code but JS passed as a string and then converted by the function itself.

            Source https://stackoverflow.com/questions/70384159

            QUESTION

            Datatable output for Apriori results not displaying in R Shiny App
            Asked 2021-Aug-05 at 01:37

            I'm developing a Shiny app which takes specific city/state inputs and processes these inputs through the Apriori function (arules package). I am running into an issue where I can not get the results to output as a datatable. I have tried various combinations; both utilizing the DT and shiny packages. My current code is below. I know the Apriori function is working because I receive an output in the console when I run the application. (1st screenshot show the app and the error I am receiving, 2nd screenshot show the output from the console, 3rd screenshot shows that by using renderPrint I receive a text output (not listed below in Server or UI code).

            Thanks in advance! I appreciate any and all feedback!

            Session Info ...

            ANSWER

            Answered 2021-Aug-05 at 01:37

            I was able to figure out the issue by changing the server side script to read (for whatever reason the DT is visible when I run the App in Rstudio but not visible once published in shiny server):

            Source https://stackoverflow.com/questions/68552566

            QUESTION

            How can i make arules.apriori work in python using rpy2
            Asked 2021-Feb-25 at 16:41

            I'm trying to run an apriori algorithm in python using rpy2. i've hit a wall because I want to give the algorithm some parameters but than the code doesn't work. if I leave the parameter blank it runs. Is there a way to make the apriori algorithm work with paramters?

            I've got some R experience and in R my code would look something like this.

            ...

            ANSWER

            Answered 2021-Feb-25 at 16:41

            I've found the answer to the question above on a different forum.

            you need to add the following code

            Source https://stackoverflow.com/questions/66371778

            QUESTION

            Association rules having same support but different confidence values
            Asked 2020-Dec-01 at 00:42

            I am generating rules from my data and one thing I noticed were a few duplicated rules. These rules have the same support, lift and count values but different confidence and coverage values.

            I initially thought this was due to a white space in one of the product names but I have trimmed and cleaned the product info before mining for rules.

            ...

            ANSWER

            Answered 2020-Dec-01 at 00:42

            This follows directly from the definition of the measures for two rules

            Source https://stackoverflow.com/questions/64860813

            QUESTION

            R Arules Item Frequency Plot Rotate Axis labels
            Asked 2020-Jun-01 at 23:30

            I'm doing some pattern mining in R using library(arules). Using ItemFrequencyPlot I am trying to rotate the x-axis labels and scale the axis names.

            ...

            ANSWER

            Answered 2020-Jun-01 at 23:30

            itemFrequencyPlot does not appear to allow you to control those labels, but it is after all just a barplot, which does give you more control of the appearance. So just make your own. Here is how. Get the top 20 frequencies. Leave lots of room for the long axis labels. And plot!

            Source https://stackoverflow.com/questions/62139870

            QUESTION

            shiny docker image build failed due to ubuntu package issue
            Asked 2020-May-18 at 08:14

            I'm trying to build docker image for my R shiny app. Below is theDockerfile.

            ...

            ANSWER

            Answered 2020-May-18 at 08:14

            The error message you are receiving is not Docker specific, but rather concerns your package manager apt.

            Although you are updating the package list using apt-get update, you do not install newer versions of packages. What happens now is that you are trying to install a newer version of an already installed package which leads to the error message.

            If you use apt-get upgrade, apt will install the newer versions of your installed packages.

            Changing the 5th line as shown below will fix that issue:

            RUN apt-get update && apt-get upgrade -y && apt-get install -y \

            Source https://stackoverflow.com/questions/61863569

            QUESTION

            cannot install devtools in r shiny docker
            Asked 2020-May-13 at 05:11

            I'm trying to build a docker image for my shiny app. Below is my dockerfile. When I build my images, everything else seems fine, except I got error message Error in library(devtools) : there is no package called ‘devtools’ Execution halted. I also tried devtools::install_github('nik01010/dashboardthemes') with no success. I have non clue why? What could go wrong? Do anyone know what is wrong with my dockerfile? Thanks a lot.

            ...

            ANSWER

            Answered 2020-May-13 at 05:11

            There are a few approaches you might try.

            Easiest:

            Use remotes::install_github instead of devtools. remotes has many fewer dependencies if you don't need the other functionality.

            Second Easiest:

            Use rocker/tidyverse image from Docker Hub instead of baseR image.

            Source https://stackoverflow.com/questions/61766604

            QUESTION

            Groceries dataset: List transaction with only n items
            Asked 2020-Apr-01 at 14:47

            this is a special question and since I have been for lot of weeks of research I didn't found any answer.

            The dataset is Groceries I get with this commands:

            ...

            ANSWER

            Answered 2020-Apr-01 at 14:47

            This should do it! Let me know if this is what you meant!

            Source https://stackoverflow.com/questions/60972602

            QUESTION

            R write.csv2 output showing empty string
            Asked 2020-Mar-26 at 13:06

            I'm trying to apply the apriori algorithm on a dataset (CSV) which works fine. After reading transactions and applying apriori I can see the results.

            Input file example:

            ...

            ANSWER

            Answered 2020-Mar-26 at 13:06

            The inspect() function only prints, so if you want to get the information for example lhs and rhs, you can follow this link or try something below that gives some information you need:

            Source https://stackoverflow.com/questions/60867202

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install arules

            Stable CRAN version: install from within R with. Current development version: install from GitHub (needs devtools and Rtools for Windows).

            Support

            Please report bugs here on GitHub. Questions should be posted on stackoverflow and tagged with arules.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mhahsler/arules.git

          • CLI

            gh repo clone mhahsler/arules

          • sshUrl

            git@github.com:mhahsler/arules.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link