如何将连续变量切成带有“ mines / plus limit value and the value”的类

我有一个历史性的天气数据,我想分为三类。 例如,我有温度,我想这样离散化: “> 10; 10-25; 25

你知道我该怎么做吗?

temperature = runif(50,min=-5,max=45)
temperature

我已经尝试了很多方法来使用cut函数以及与arules padckage离散化,但是我找不到解决方案。使用这些方法,我可以有-inf:10; 10:25和25:inf,但是出于可解释性的原因,我更喜欢找到对mu用户更具可读性的其他解决方案

iCMS 回答:如何将连续变量切成带有“ mines / plus limit value and the value”的类

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2178681.html

大家都在问