Skip to content
Prev 295615 / 398502 Next

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

Is the file format documented?

If not you can search for a possible format if you know the values
at the start of the file.   For one of your files, show the results of the following:
  file <- "your filename here"
  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))
      }
    }
  }
Do any of them look ok?  If not you may want to loop over possible
offsets in the file by opening a connection, reading from 1 to 7 one-byte
integers, and then reading the data of interest.


Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com