I have a data.frame with 15,000 observations of 34 ordinal and NA variables. I am performing clustering for a market segmentation study and need the ro
data.frame
NA
Using the Store2 sample data posted in the answer provided by @akrun
Store2
which(apply(Store2, 1, function(x) all(is.na(x)))) #3 4 #3 4
Or, similar to akrun's answer:
which(rowSums(!is.na(Store2))==0) #3 4 #3 4