Skip to content

Commit e03463d

Browse files
committed
Replace inner_join by full_join in as_tibble, to avoid getting an empty object when dimnames are not shared
1 parent edc9f81 commit e03463d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/tibble_methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ as_tibble.SummarizedExperiment <- function(x, ...,
8888

8989
# If I want to return all columns
9090
count_info %>%
91-
inner_join(sample_info, by=s_(x)$name) %>%
92-
inner_join(gene_info, by=f_(x)$name) %>%
91+
full_join(sample_info, by=s_(x)$name) %>%
92+
full_join(gene_info, by=f_(x)$name) %>%
9393
when(nrow(range_info) > 0 ~ (.) %>% left_join(range_info) %>% suppressMessages(), ~ (.))
9494

9595
# This function outputs a tibble after subsetting the columns

0 commit comments

Comments
 (0)