Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subset() fails with zero-dimension objects and missing values #67

Open
mtmorgan opened this issue May 27, 2020 · 1 comment
Open

subset() fails with zero-dimension objects and missing values #67

mtmorgan opened this issue May 27, 2020 · 1 comment

Comments

@mtmorgan
Copy link

Compare

> subset(DataFrame())
Error: subscript is a logical vector with out-of-bounds TRUE values
> subset(data.frame())
data frame with 0 columns and 0 rows

This is because

returns a length 1 logical vector regardless the dimensions of x.

This is the reason for Bioconductor/VariantAnnotation#40, with j incorrect at https://github.com/Bioconductor/VariantAnnotation/blob/61ecbd8e019cd3e15013506fc5ec6a4495829f7c/R/methods-VCF-class.R#L336

@hpages
Copy link
Contributor

hpages commented May 27, 2020

@lawremi Michael?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants