[R] Data Import to R

Ramesh Gautam rskgautam at gmail.com
Fri Nov 14 01:28:02 CET 2014


While importing .csv files into R, all data are converted to factor-by
default. But, how can I preserve the original format of the data like
numeric to numeric, integer to integer, character to character etc while
importing from csv to R environment.

I tried several ways, no thing helps. I used 'stringsAsFactor = FALSE'
command, it did convert all data to characters. But, I wanted to preserve
the numeric data to be in integer or double.

Any idea? examples?

Thanks

	[[alternative HTML version deleted]]



More information about the R-help mailing list