> Further to the above: The help
>
>   ?":"
>
> says:
>
> Value:
>   For numeric arguments [as opposed to factors],
>   a numeric vector. This will be of type 'integer'
>   if 'from' and 'to' are both integers and
>   representable in the integer type, otherwise of
>   type 'numeric'
???

This is very surprising since with a "to" numeric, the result is integer :

 > str(1:4.5)
 int [1:4] 1 2 3 4

Anyway, if I understand, 'integer' in R is not realy the math type 
integer. I am a bit confuse...

Christophe

______________________________________________
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