Write an R program to replace all negative numbers in a vector with zeros.
EasyProblem Statement
Write an R program to replace all negative numbers in a vector with zeros.
Sample Input
Vector: c(-5, 3, -2, 7, -1)
Sample Output
[1] 0 3 0 7 0
Limits
Time: 2s · Memory: 256 MB