lundi 2 décembre 2019

R case when according to intervals

In R ;

I want to put that 'points' according to that intervals in my table

enter image description here

the case is :

if 'category'=aa then if 'intervals'=[20,212) then points=15

but it should not be manual like that it should work related to my above table columns!

Thanks!

Aucun commentaire:

Enregistrer un commentaire