Count Positive Values easy
Conditional Statements

Write an R function solution(x) that returns how many elements of the numeric vector x are strictly greater than zero.

Example

solution(c(-1, 2, 3, -4))  →  2
solution.py
14px
📊 Test Results
Run your code to see test results here.