cc(nhanes) # get the 13 complete cases
ic(nhanes) # get the 12 rows with incomplete cases
ic(nhanes[1:10,]) # incomplete cases within the first ten rows
ic(nhanes[,2:3]) # restrict extraction to variables bmi and hyp
cc(nhanes[,2,drop=FALSE], drop=FALSE) # extract complete bmi as column
Run the code above in your browser using DataLab