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