[R] int vector

Giles Crane gilescrane at verizon.net
Wed Sep 11 17:21:04 CEST 2013


class int seems to interact oddly with fix() and dotchart().

Reading a .csv file when there are no decimal points
in an item, results in a data.frame having a column
of class int.  The mode, however, is numeric.

fix() does not recognize int "vectors",
and thus does not spread its sheet.

dotchart() displays a 1 above the labels on the plot.

Converting the int column to numeric using as.numeric()
cures the problems.  However, the behavior of the int class
seems inconsistent.

R Version 3.01 (2013-05-16)

Thank you for your consideration.

Cordially,
Giles


-- 
Giles L Crane, MPH, ASA, NJPHA
Statistical Consultant and R Instructor
621 Lake Drive
Princeton, NJ  08540
Phone: 609 924-0971
Email: gilescrane at verizon.net



More information about the R-help mailing list