I know there is no float in R. so How can I read float data from a binary file. the struct of data in C as follows
typedef struct
{
int date;
int open;
int high;
int low;
int close;
float amount;
int vol;
int reservation;
} StockData;
to.read = file(filename, "rb");
line1=readBin(to.read, "int",8);
amount is not the right value. how can I get the right value as float?