[Bioc-devel] Numeric Operation on DataFrame

Dario Strbenac dstr7320 at uni.sydney.edu.au
Tue Jan 16 07:00:19 CET 2018


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
dataTableS4 <- DataFrame(aFeature = 1:5, anotherFeature = 5:1)
colMeans(dataTableS4)
    Error in colMeans(dataTableS4) : 
        'x' must be an array of at least two dimensions

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia



More information about the Bioc-devel mailing list