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.