Re: [Bioc-devel] Numeric Operation on DataFrame

2018-01-16 Thread Hervé Pagès
Hi, I think I remember it was once suggested on this list that DataFrame objects with numeric columns could support math/summarization operations, like data.frame objects do (can't find the thread to provide the link, sorry). I'll mention that wrapping a DataFrame object (or any matrix-like or a

Re: [Bioc-devel] Numeric Operation on DataFrame

2018-01-16 Thread Michael Lawrence
Please be more specific about the desired operations, or, better, submt a pull request with them. colMeans() in particular was intentionally omitted because it depends on having homogeneous data, which is better suited for a matrix, not a data frame. On Mon, Jan 15, 2018 at 10:00 PM, Dario Strbena

[Bioc-devel] Numeric Operation on DataFrame

2018-01-15 Thread Dario Strbenac
Good day, Would it be useful to provide the same operations which can be done to a data.frame for a DataFrame in a future release of S4Vectors? For example, dataTable <- data.frame(aFeature = 1:5, anotherFeature = 5:1) colMeans(dataTable) # aFeature anotherFeature # 3 3 da