dbosak01 / libr

An R package to create data libraries and data dictionaries.
27 stars 1 forks source link

delete() on row with NA not working #168

Closed dbosak01 closed 2 weeks ago

dbosak01 commented 2 months ago

df1 <- data.frame( var = c(NA,0) )

datastep(df1, { if (var == 0) delete() # This does not work because of the NA }) -> df2

dbosak01 commented 2 weeks ago

Error is because of the == on NA, not because of the delete.