Skip to content

Subsetting with "missing" arguments #65

@allisonvuong

Description

@allisonvuong

Hi,

Matrix subsetting in base R supports "missing" subsetting arguments, but it seems the DelayedMatrix may not.

For example,

m <- matrix(runif(300000), nrow=10000, ncol=30)
M <- DelayedArray(m)

foo <- function(object, i, j) {
    object[i, j]
}

foo(m, j=!logical(ncol(m)))
foo(M, j=!logical(ncol(M)))

Is it possible to support this? I think packages like limma::subsetListOfArrays rely on such subsetting support for subsetting its EList objects.

Best,
Allison

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions