Hello, I am a newbie trying to learn R-studio and faced a problem on the beginning day.

I am trying to generate a log-linear model by using these equations :

model3 <-lm(log(oprc)~log(odmd)+log(ofreq)+log(dist)+log(kgdp)+log(dgdp)+log(poil)+log(trade)

+fra+lon+par+vie+atl+chi+dfw+lax+nyc)

and found out that it says

"Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 'x' NA/NaN/Inf"

Im guessing its because of the 0s in the dataset(odmd & ofreq) since log(0) = -INF

(there's no 0s in other columns, but only in odmd & ofreq)

Can you guys tell me how to work things out without getting the errors?