I typically use functions such as is.na
and COALESCE
but I cannot find such as functions for R's SQLDF which makes its usage hard with messy data with missing values. Is there some way to force SQLDF to return NA in the case when NAs are occurring in the operations?
How can you handle missing values and NAs with SQLDF?
> sqldf('SELECT NA/13210')
Exception: no such column: NA
Show stack trace
> sqldf('SELECT NA/13210, 223423/NA')
Exception: no such column: NA
Show stack trace