select only rows without na 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)]