Skip to content

Commit

Permalink
Use unspecified()
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 20, 2024
1 parent 6704594 commit e47bd2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/operators.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,7 @@ disjoint_union <- function(...) {
attr[[noattr[a]]] <- vctrs::vec_c(attr[[noattr[a]]], rep(NA, ec[i]))
}
for (a in seq_along(newattr)) {
if (cumec[i] == 0) {
attr[[newattr[a]]] <- ea[[newattr[a]]]
} else {
attr[[newattr[a]]] <- vctrs::vec_c(rep(NA, cumec[i]), ea[[newattr[a]]])
}
attr[[newattr[a]]] <- vctrs::vec_c(vctrs::unspecified(cumec[[i]]), ea[[newattr[a]]])
}
}
edge.attributes(res) <- attr
Expand Down

0 comments on commit e47bd2c

Please sign in to comment.