remove line with na read.table() r code example Example: remove line with na read.table() r all_data <- all_data[complete.cases(all_data[, 'Ground_Tru'])]