Re: [R] Intended use-case for data.matrix

2020-11-04 Thread Duncan Murdoch
On 04/11/2020 4:43 p.m., Philip Charles wrote: Hi Duncan, Thanks; that's really useful info, and now that you point it out I completely agree that the frame arguments description does make my original use invalid - I will pay closer attention to such details in future.  Would you suggest sapp

Re: [R] Intended use-case for data.matrix

2020-11-04 Thread Philip Charles
Hi Duncan, Thanks; that's really useful info, and now that you point it out I completely agree that the frame arguments description does make my original use invalid - I will pay closer attention to such details in future. Would you suggest sapply(...,as.numeric) is the most 'R'-y way of conv

Re: [R] Intended use-case for data.matrix

2020-11-04 Thread Duncan Murdoch
You can see the change to the help page here: https://github.com/wch/r-source/commit/d1d3863d72613660727379dd5dffacad32ac9c35#diff-9143902e81e6ad39faace2d926725c4c72b078dd13fbb1223c4a35f833b58ee6 Before the change, it said the input should be a data frame whose components are logical vectors, fa

[R] Intended use-case for data.matrix

2020-11-04 Thread Philip Charles
Hi R gurus, We do a lot of work with biological -omics datasets (genomics, proteomics etc). The text file inputs to R typically contain a mixture of (mostly) character data and numeric data. The number of columns (both character and numeric data) in the file vary with the number of samples me