R Basics-11 - Coding-Conditional Operations- which() (Hands On) - ClassiCoder
Conditional operation - which()
Perform the following tasks:
1. Identify the position of the values greater than 13 and less than 16 in the vector M passed as function parameter and assign to ans
2. Note: Function Structure is given as an unalterable code.
Conditional-Operations-which-R-Basic |
Conditional-Operations-which-R-Basic-Solution |
5 comments
ans<-which (M>13 & M <16)
For me all test cases are passed