lundi 15 janvier 2018

Writing a conditional statement that modifies the original object, setting boundaries on a risk score

I am currently trying to take a risk score that is between ~(-0.5) and ~1.5 and put boundaries on it so that if it is below 0 it will be set to zero and if it is above 1 it will be set to 1. I have yet to find an example where the initial object is the one that is changed, as I do not wish to just create a flag or separate objects that I will have to consolidate later. sample pic of my data below[1]

[[1]: http://ift.tt/2DkNPcI

Aucun commentaire:

Enregistrer un commentaire