[R] inadequacy in as.integer....

JRG jrg @end|ng |rom |oe@|@u@
Sun Sep 11 18:27:57 CEST 2022


On 9/11/22 12:22, akshay kulkarni wrote:
> Dear members,
> I came across this queer thing during my analysis:
>> as.integer("09098")
> 9098
>
> Any idea on how to retain the "0"?

Don't use as.integer(), which has performed precisely the service that
it advertises?


I certainly wouldn't call this an 'inadequacy'.


And please stop posting in html.


---JRG



> Yours sincerely,
> AKSHAY M KULKARNI
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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