r - Transform a matrix txt file in spectra data for ChemoSpec package -
i want use chemospec mass spectra of 60'000 datapoint.
i have them in 1 txt file matrix (x + 90 samples = 91 columns; 60'000 rows).
how may adapt file spectra data without exporting again each single file in csv format (which quite long in r given size of data)?
the typical (and only?) way import data chemospec way of getmanycsv() function, question indicates requires 1 csv file each sample.
creating 90 csv files 91 columns - 60,000 rows file described, may slow , tedious in r, done standalone application, whether existing utility or ad-hoc script.
an r-only solution create new method, getonebigcsv(), adapted getmanycsv(). after all, the logic of getmanycsv() relatively straight forward.
don't expect such solution sizzling fast, should, in case, compare time takes run getmanycsv() , avoid having create , manage many files, hence overall faster , less messy.
Comments
Post a Comment