Simple thing: dt <- rbindlist(list(NULL, NULL)) #dt is a data.table with 0 rows and columns
is.null(dt) # Prints false d <- rbind(NULL, NULL) #d is NULL is.null(d) # Prints true I would expect the two to be equivalent. This bit me when I was relying on !is.null(dt) before assigning other columns in the data.table. rbindlist should return NULL in this case I would think. Is this working as intended? Or should I file a bug?
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
