[Bioc-devel] Numeric Operation on DataFrame

Michael Lawrence lawrence.michael at gene.com
Tue Jan 16 15:29:57 CET 2018


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 Strbenac <dstr7320 at uni.sydney.edu.au
> wrote:

> 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
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list