Skip to content

Commit

Permalink
fix .SD
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Oct 8, 2024
1 parent c434b3a commit 512ab61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/direction_polarization.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ direction_polarization <- function(
stop('units(DT$direction) is not radians, did you use direction_step?')
}

DT[, c(out) := CircStats::r.test(units::drop_units(.SD))$r.bar,
DT[, c(out) := CircStats::r.test(units::drop_units(.SD[[1]]), degree = FALSE)$r.bar,
by = c(group),
.SDcols = c(direction)]

Expand Down

0 comments on commit 512ab61

Please sign in to comment.