Teaching R decision making in simple language
Decision structures require the programmer to specify one or more conditions that must be estimated or tested by the program, if this condition is correct; Decision , Command or commands must be executed; And you…