mhahsler / arules

Mining Association Rules and Frequent Itemsets with R
http://mhahsler.github.io/arules
GNU General Public License v3.0
194 stars 42 forks source link

discretize function not working when NA in data vector #38

Closed yarik1988 closed 6 years ago

yarik1988 commented 6 years ago

In previous version of discretize it works well on vectors with NA available. This is not a big issue, but in general this function works differently than the old one. On the same data it does not allow me to use same number of bins, tells to decrease it. So I invoked and use old discretize and cut2 function

mhahsler commented 6 years ago

Note that discretize now used equal "frequency" as the default. The development version on github now handles NAs correctly again (will be part of the next release). The previous discretization was faulty and that is why the results in the new version are different. Please let me know if you have an example where it produces incorrect/strange results.

Thanks!

mhahsler commented 6 years ago

NA problem is fixed in version arules 1.6-1.