Hello! Can't figure it out - hope it's simple:

# I have some value (can be anything), e.g.:
x = 12
# I'd like it to become 1.

# If the value is negative (again, it can be anything), e.g.:
y = -12
# I'd like it to become -1.

How could I do it?
Thanks a lot!

-- 
Dimitri Liakhovitski

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to