well
"*"(3,2) works but "*"(3,2,3) does not. You should now be able to
figure out the logic. It is related to the number of arguments that
make sense.
Nikhil Kaza
Asst. Professor,
City and Regional Planning
University of North Carolina
nikhil.l...@gmail.com
On Aug 1, 2010, at 10:56 AM, Ron Michael wrote:
Hi friends, I am aware of the function "-"() which acts as minus in
ordinary computations. For example:
"-"(3, 1)
[1] 2
However what is the meaning of
"-"(3)
[1] -3
I was expecting R to generate some error as it does for "*"(3). What
is the logic for that calculation?
Thanks,
[[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.
______________________________________________
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.