We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[
1 parent 7f5c345 commit d76c077Copy full SHA for d76c077
R/methods-epi_df.R
@@ -99,9 +99,7 @@ summary.epi_df = function(object, ...) {
99
100
# Amend additional metadata if some other_keys cols are dropped in the subset
101
old_other_keys = attr(x, "metadata")$other_keys
102
- if (length(setdiff(old_other_keys, cn)) > 0) {
103
- attr(res, "metadata")$other_keys <- intersect(old_other_keys, cn)
104
- }
+ attr(res, "metadata")$other_keys <- old_other_keys[old_other_keys %in% cn]
105
106
res
107
}
0 commit comments