I want to select rows from a data frame according to some conditions. I usually select values using % in % operator. I used many %in% for selecting values.
  val1 <- portData [portData$PmkVal %in% c(NA),]
  val2 <- val1 [val1$Quantity %in% c(NA),]
  weigtageData <- val2 [val2$MktVal %in% c(NA),]
Can i write all these statements in one line and select data from frame portData itself instead of writing this inefficient code?