[R] Meaning of following function
    Nikhil Kaza 
    nikhil.list at gmail.com
       
    Sun Aug  1 20:25:56 CEST 2010
    
    
  
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.list at 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 at 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.
    
    
More information about the R-help
mailing list