当使用SQL和Inf时,如何识别sqldf、sqldf?
样本数据:
x <- data.frame(val = c(1, 2, 3, Inf))现在,我正在使用:
sqldf('select * from x where val < 999999999999999999999')但这似乎不太安全。
发布于 2015-01-10 14:10:48
试试这个:
> sqldf("select val from x where cast(val as text) != 'Inf'")
val
1 1
2 2
3 3https://stackoverflow.com/questions/27876884
复制相似问题