[datatable-help] unique values in data.table

Serdar Akin serdar.akin76 at gmail.com
Wed Jun 28 11:42:23 CEST 2017


Hi all

I'm using data.table 1.10.5 and tried to the get unique values and 
keeping NA values

unique(

     data.table(    email = c(rep(NA,4), rep("david", 3), "frank"), nr = 
1:8)

      , by = 'email', na.rm = FALSE)

But this still removes the NA values.

Regards Serdar



More information about the datatable-help mailing list