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 6e7f62d commit 5a44ed1Copy full SHA for 5a44ed1
R/subset.R
@@ -42,7 +42,8 @@
42
}
43
44
cn <- names(res)
45
- not_tsibble <- !(index_var(x) %in% cn) || vec_size(res) > vec_size(x)
+ nr <- vec_size(x)
46
+ not_tsibble <- !(index_var(x) %in% cn) || vec_size(res) > nr || any(i > nr)
47
if (not_tsibble) return(as_tibble(res))
48
49
if (!is_null(i)) {
0 commit comments