I want to find all the empty rows in specific columns and then remove them. I was able to do so:
#specify which one is empty in gender, education level,and industry
which(msUS$Gender =="",arr.ind = TRUE)
which(msUS$Education_Level=="",arr.ind = TRUE)
which(msUS$Industry=="",arr.ind = TRUE)
#remove the empty rows
msUS <-msUS[!(msUS$Gender==""),]
msUS <-msUS[!(msUS$Education_Level==""),]
msUS <-msUS[!(msUS$Industry==""),]
#check num of rows & columns
Is there any smarter way to do it?