Assignment
In the assignment i have worked out got the solution but with an error. Kindly help sir

subData <- subset(captaincy,played>20,lost<14, select = c("names","played","lost"))
Error in `[.data.frame`(x, r, vars, drop = drop) : 
  object 'lost' not found
> print(subData)
   names played won
1   Mahi     45  22
2 Sourav     49  21
6 Dravid     25   8

R Indexing-and-Slicing-Data-Frames 12-13 min 30-40 sec 15-05-20, 8:05 p.m. Alamu

Answers:

Please note that you need to use an & symbol to combine multiple conditions, as shown below:
-----------------------------------------------------------------------------------------------------------------------
subData <- subset(captaincy, played>20 & lost<14, select = c("names","played","lost"))
-----------------------------------------------------------------------------------------------------------------------
15-05-20, 8:33 p.m. sudhakarst
Thank you sir
15-05-20, 8:38 p.m. Alamu


Thank you so much sir.
15-05-20, 8:38 p.m. Alamu


Click here to reply/comment online