[R] R does not recognise columns and rows as they are supposed to be

Jonsson amen.alyaari at Bordeaux.inra.fr
Fri May 25 17:58:29 CEST 2012


Yes I did so.
Yes the first values are the right ones: -9999 -9999.
so this meant that I should consider my data as:     double/4/little
Is it so?

file <-
"C:\\Users\\aalyaari\\Documents\\INRA\\WFD_reprocessed\\dialyswco\\2001\\SWdown_200101_01.img"
>  for(what in c("double", "integer")) {
+     for(size in c(4, 8)) {
+         for(endian in c("little", "big")) {
+         cat(sep="", what, "/", size, "/", endian, ":\n   ");
+         print(readBin(file, what=what, size=size, endian=endian, n=6))
+       }
+     }
+   }
double/4/little:
   [1] -9999 -9999 -9999 -9999 -9999 -9999
double/4/big:
   [1] 5.520452e-39 5.520452e-39 5.520452e-39 5.520452e-39 5.520452e-39
5.520452e-39
double/8/little:
   [1] -5.592396e+29 -5.592396e+29 -5.592396e+29 -5.592396e+29 -5.592396e+29
-5.592396e+29
double/8/big:
   [1] 1.563804e-307 1.563804e-307 1.563804e-307 1.563804e-307 1.563804e-307
1.563804e-307
integer/4/little:
   [1] -971228160 -971228160 -971228160 -971228160 -971228160 -971228160
integer/4/big:
   [1] 3939526 3939526 3939526 3939526 3939526 3939526
integer/8/little:
   [1] -971228160 -971228160 -971228160 -971228160 -971228160 -971228160
integer/8/big:
   [1] 3939526 3939526 3939526 3939526 3939526 3939526
> 

--
View this message in context: http://r.789695.n4.nabble.com/R-does-not-recognise-columns-and-rows-as-they-are-supposed-to-be-tp4631217p4631344.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list