On 09/11/2010 05:00 AM, Peng, C wrote:
> 
> Thanks David. 
> func() simply prints out the 0010 as a text value. It is still not numeric.
> I am just curious about it.
> 
>> is.numeric(func4(0100))
> 00100[1] FALSE
> 
> 

Well, you can look at the kind of things as.octmode & friends do.

The only thing you can do is to change the print method; internally
there can be no difference between the representation of 10 and 010.


-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.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.

Reply via email to