the "*" character in front of the Temp variable is there because i just wanted to bold the variable in the threade that you can see where it is used.
I just restart my computer and R. Now the function is working great. No clue what was happening, but now everything works. Sorry for the false notice, and thanks so much for this quick support by all of you. Next time i'll restart R before posting on the forum... Simon -- View this message in context: http://r.789695.n4.nabble.com/Cannot-use-negative-argument-in-function-tp4430667p4433537.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.