[R] Bytes to Numeric/Float conversion

David Winsemius dwinsemius at comcast.net
Tue Jun 11 23:14:53 CEST 2013


On Jun 11, 2013, at 9:01 AM, Bikash Agrawal wrote:

> Is there any packages available in R, that can convert Bytes array to Float.
> Using rJava we can do it. But it is kind of slow. Is there any R
> specific packages.
> I am having problem converting my bytes array to floating point.
> Could any one help me with this problem.

There is a raw data type that is designed to hold bytes than can be indexed.

?raw

`scan` can read files of type raw

?scan

-- 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list