[R] convert from float32 to 16B

2012-05-28 Thread sam84
I want to just convert from float32 to 16b with scale factor of 10. I wonder why some files were converted correctly while some were not converted correctly. By means, the results of some files are weird. the original files are all ok!. dir1<- list.files("C:\\New folder (13)", "*.img", full.nam

[R] Why R order files as 1 10 100 not 1 2 3 ?

2012-05-28 Thread sam84
The code given below worked well. However, the problem is that when I typed dir1 to see the results I found that R order the files as: [1] "data1.flt" "data10.flt" "data100.flt" "data101.flt" [5] "data102.flt" "data103.flt" "data104.flt" "data105.flt" [9] "data106.flt" "data107.flt" "data1