How to identify Inf , -Inf using SQL with sqldf ?
Inf
-Inf
sqldf
Sample data:
x <- data.frame(val = c(1, 2, 3, Inf))
Now I am using:
sqldf('select * from x where val < 999999999999999999999')
But it doesn't seem very safe.
Try the following:
> sqldf("select val from x where cast(val as text) != 'Inf'") val 1 1 2 2 3 3