[values, count]=fread(fop,[4969, 2137],'float');
I am running this command to read a binary file in MATLAB which contained 2137 rows and 4969 columns. But unable to read same file in R language. I tried this command to run same process:
jo<-file(choose.files(),"rb") jo2<-readBin(jo,double(),n=c(4969,2137),size=4,endian = "little")
But It only read the first row. Can anyone give me any suggestions to perform matlab's equivalent command in R to read file same as matlab.