I am trying to create and if else statement for my dataset. I have a variable called 'freq' that has some values of 0. I want to turn those values of 0 into 10^-12 and then create a loglinear model. For the values of 'freq' that are greater than 0 I want to leave them as is. My attempts keep drawing errors.
if (freq==0) { print ("freq==10^-12")**
}
else print ("freq")