An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111012/0395676e/attachment.pl>
large numbers
3 messages · Veerappa Chetty, R. Michael Weylandt, David Winsemius
Are you sure its being imported into R without the decimal and that it's not just a print option? I can't off the cuff think of a reason why that would happen... Try print(valueFromImport - 43988014) and see what you get Michael
On Wed, Oct 12, 2011 at 3:16 PM, Veerappa Chetty <chettyvk at gmail.com> wrote:
Hi, When I import an excel "CSV" file, large numbers such as " 43988014.3" is imported as "43988014", leaving out the decimal ".4". How to import keeping the fraction? Thanks. Chetty -- Professor of Family Medicine Boston University Tel: 617-414-6221, Fax:617-414-3345 emails: chettyvk at gmail.com,vchetty at bu.edu ? ? ? ?[[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.
On Oct 12, 2011, at 3:16 PM, Veerappa Chetty wrote:
Hi, When I import an excel "CSV" file, large numbers such as " 43988014.3" is imported as "43988014", leaving out the decimal ".4". How to import keeping the fraction?
"Import from Excel" is a vague problem statement. It's also kind of odd that you have a leading space iside the quotes in the example. Makes me wonder if you got numbers somehow "factorized" because of non- numeric entries in the "csv" file. Why not show the code used to do it _and_ str() on the object? Or even better dput from a row with a "large number"?
David Winsemius, MD West Hartford, CT