hello,everyone. I have one question:

example 1
> x=numeric(0)
> y=5
> print(x+y)
numeric(0)
 
example 2
> x=numeric(1)
> y=5
> print(x+y)
[1] 5

why the print(x+y)  is numeric(0) at the first example, but the result is 0
at the second example? 


__________________________________________________

�Ż����G���䣭�й���һ���������ʼ�ɧ�ų�������

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to