saving . . . saved data frame slicing has been deleted. data frame slicing has been hidden .
data frame slicing
Title
Question
in the assignment 
my code is 
subdata <- subset(captaincy,played>20&&lost<14,select =c("names","played","won","lost"))
print(subdata)
result is 
  names played won lost
1    Mahi     45  22   12
2  Sourav     49  21   13
3   Azhar     47  14   14
4   Sunny     47   9    8
5 Pataudi     40   9   19
6  Dravid     25   8    6

in lost column we have 19 but it should be less than 14 know.

R Indexing-and-Slicing-Data-Frames 01-02 min 0-10 sec 19-05-20, 5:04 p.m. bsankari2007@rediffmail.com

Answers:

Please use & in place of && while combining played>20 and lost<14. So, the code should be written as given below:
subdata <- subset(captaincy, played>20 & lost<14, select =c("names","played","won","lost"))

19-05-20, 11:05 p.m. sudhakarst


Log-in to answer to this question.