Skip to content

Commit

Permalink
rm looking forward correct
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Sep 19, 2024
1 parent 8a1b454 commit 6c79017
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/fusion_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ fusion_id <- function(edges = NULL,
both_rleid := (both_rleid + seq.int(.N)) * -1,
by = dyadID]

# Correct if (looking forward) the loc is part of a new fusion run
unique_edges[, both_rleid := data.table::fifelse(
timegroup - data.table::shift(timegroup, -1) == -1 &
within & !(tg_diff),
data.table::shift(both_rleid, -1),
both_rleid
), by = dyadID]

# If n minimum length > 0, check nrows and return NA if less than min
if (n_min_length > 0) {
unique_edges[!is.na(both_rleid), both_rleid := data.table::fifelse(
Expand Down

0 comments on commit 6c79017

Please sign in to comment.