replaceNAs function

Replace NAs in a data.table or data.frame column, or in a vector