Dear R users I read two csv data files into R and called them Tem1 and Tem5.
For the first column, data in Tem1 has 13 digits where in Tem5 there are 14 digits for each observation. Originally there are 'numerical' as can be seen in my code below. But how can I display/convert them using other form rather than scientific notations which seems a standard/default? I want them to be in the form like '20110911001084', but I'm very confused why when I used 'as.factor' call it works for my 'Tem1' but not for 'Tem5'...?? Many thanks! HJ > Tem1[1:5,1][1] 2.10004e+12 2.10004e+12 2.10004e+12 2.10004e+12 2.10004e+12> > Tem5[1:5,1][1] 2.011091e+13 2.011091e+13 2.011091e+13 2.011091e+13 > 2.011091e+13> class(Tem1[1:5,1])[1] "numeric"> class(Tem5[1:5,1])[1] > "numeric"> as.factor(Tem1[1:5,1])[1] 2.10004e+12 2.10004e+12 2.10004e+12 > 2.10004e+12 2.10004e+12 Levels: 2.10004e+12> as.factor(Tem5[1:5,1])[1] 20110911001084 20110911001084 20110911001084 20110911001084 20110911001084 Levels: 20110911001084 [[alternative HTML version deleted]] ______________________________________________ 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.