R: If function, if value in vector > 0, then replace with number : I try to performe the Cowles-Jones-Test in R.
Basically, I don't know how to write a script, in which I can check, if a value within my vector is bigger than zero or not (for every single value in this vector). If it's bigger than zero, it should replace this number with an one, if not, than a zero.

Couldn't find anything so far and would appreciate some help