powered by
heavy side function
hs(x)
as.integer(x>0)
The vector of values
hs(2)
Run the code above in your browser using DataLab