[R] read list of binary files and explore them

Boris Steipe boris.steipe at utoronto.ca
Sat Apr 29 17:51:50 CEST 2017


Given that, you can be certain that your file contains more than one or two numbers, thus your way of reading it must be wrong.

B.





> On Apr 29, 2017, at 11:34 AM, Ragia . <ragia11 at hotmail.com> wrote:
> 
> 
> files size is 7682 kb
> 
> sorry for multiple emails
> 
> Ragia
> 
> 
> 
> 
> ________________________________
> From: Bert Gunter <bgunter.4567 at gmail.com>
> Sent: Saturday, April 29, 2017 4:45 PM
> To: Ragia .; R-help
> Subject: Re: [R] read list of binary files and explore them
> 
> 1. Unless your comment is OT or personal, always reply to the list.
> 
> 2. What does your OS say about file size?
> 
> 3. Beyond this, I cannot help.
> 
> -- Bert
> 
> 
> 
> Bert Gunter
> 
> "The trouble with having an open mind is that people keep coming along and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> 
> On Sat, Apr 29, 2017 at 6:38 AM, Ragia . <ragia11 at hotmail.com<mailto:ragia11 at hotmail.com>> wrote:
> 
> 
> lots  of thanks for answering, I guess I asked the question in wont way...
> 
> I did that, but some times I got one single reading( number) from the file..other times two numbers, is there a way to be sure that I am reading it correctly? what I know is not more than its float content .
> 
> 
> Ribrahim
> 
> 
> 
> 
> ________________________________
> From: Bert Gunter <bgunter.4567 at gmail.com<mailto:bgunter.4567 at gmail.com>>
> Sent: Saturday, April 29, 2017 6:31 AM
> To: Ragia .
> Cc: r-help at r-project.org<mailto:r-help at r-project.org>
> Subject: Re: [R] read list of binary files and explore them
> 
> 
> ?readBin  (a search on "read binary files R" or similar would have found this).
> 
> and please spend some time with the R import/export manual + tutorials
> to learn how to manipulate data in R. This list expects you to make an
> effort to do your own work before posting. See the posting guide below
> for details.
> 
> Cheers,
> Bert
> 
> 
> 
> 
> Bert Gunter
> 
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> 
> 
> On Fri, Apr 28, 2017 at 9:13 PM, Ragia . <ragia11 at hotmail.com<mailto:ragia11 at hotmail.com>> wrote:
>> 
>> Dear group,
>> 
>> I have  list of  4-byte float type files, the files are named f00, f01, f02 till f99....
>> 
>> 
>> kindly how can I read and explore them in R, merge the readings in a table or data frame
>> 
>> thanks in advance,
>> 
>> 
>> Ragia A. Ibrahim
>> 
>> 
>> 
>>        [[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at r-project.org<mailto:R-help at r-project.org> mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
> 
> thz.ch/mailman/listinfo/r-help>
> stat.ethz.ch<http://stat.ethz.ch>
> The main R mailing list, for announcements about the development of R and the availability of new code, questions and answers about problems and solutions using R ...
> 
> 
> 
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list