Generate a Function & apply it to all/some attributes automatically
I've created a new attribute using the Generate Attribute operator.
Attribute name N_speed, with 'N' representing the location.
E.g. 2_speed represents speed at location 2.
(New) Attribute Name: 2speed
Function Expressions: if([2_speed]>=70,"DANGER","SAFE").
However, I have nearly 300 attributes. I've tried adding new entries and replacing each with the name of the next attribute, but its just too much work.
Hence, Is there any way to apply the same function to all attributes automatically?
if([2_speed]>=70,"DANGER","SAFE")
if([3_speed]>=70,"DANGER","SAFE")
if([4_speed]>=70,"DANGER","SAFE")
if([5_speed]>=70,"DANGER","SAFE")
if([6_speed]>=70,"DANGER","SAFE")
if([7_speed]>=70,"DANGER","SAFE") and so on...
Thanks.
Regards,
AY
Attribute name N_speed, with 'N' representing the location.
E.g. 2_speed represents speed at location 2.
(New) Attribute Name: 2speed
Function Expressions: if([2_speed]>=70,"DANGER","SAFE").
However, I have nearly 300 attributes. I've tried adding new entries and replacing each with the name of the next attribute, but its just too much work.
Hence, Is there any way to apply the same function to all attributes automatically?
if([2_speed]>=70,"DANGER","SAFE")
if([3_speed]>=70,"DANGER","SAFE")
if([4_speed]>=70,"DANGER","SAFE")
if([5_speed]>=70,"DANGER","SAFE")
if([6_speed]>=70,"DANGER","SAFE")
if([7_speed]>=70,"DANGER","SAFE") and so on...
Thanks.
Regards,
AY