Skip to content
Prev 7150 / 29559 Next

reading select values from a binary file

If you can read the whole file at once it might be better to push the
results into a matrix for indexing in R. This could also be useful for
reading chunks of the file, and processing in parts.  seek is fine but
if you are moving around for three values each read it will be slow.
If the arrangement complex,  R's "[" indexing can save you from making
simple errors.

BTW, what is the format of the file? If GDAL can read it the rgdal
package provides a simpler route.

Cheers, Mike.

On Thu, Dec 10, 2009 at 5:33 AM, Barry Rowlingson
<b.rowlingson at lancaster.ac.uk> wrote: