delete rows containing missing values in R code example
Example 1: remove line with na r
# remove na in r - remove rows - na.omit function / option
ompleterecords <- na.omit(datacollected)
Example 2: remove line with na r
# na in R - complete.cases example
fullrecords <- collecteddata[!complete.cases(collecteddata)] droprecords <- collecteddata[complete.cases(collecteddata)]