Skip to content

Commit

Permalink
fix reduce example runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Nov 1, 2024
1 parent 457e8e2 commit 92ca9c6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/direction_to_leader.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
#' # Read example data
#' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc"))
#'
#' # (Subset example data to reduce example run time)
#' DT <- DT[year(datetime) == 2016]
#'
#' # Cast the character column to POSIXct
#' DT[, datetime := as.POSIXct(datetime, tz = 'UTC')]
#'
Expand Down
3 changes: 3 additions & 0 deletions R/distance_to_leader.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
#' # Cast the character column to POSIXct
#' DT[, datetime := as.POSIXct(datetime, tz = 'UTC')]
#'
#' # (Subset example data to reduce example run time)
#' DT <- DT[year(datetime) == 2016]
#'
#' # Temporal grouping
#' group_times(DT, datetime = 'datetime', threshold = '20 minutes')
#'
Expand Down
3 changes: 3 additions & 0 deletions R/leader_direction_group.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
#' # Read example data
#' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc"))
#'
#' # (Subset example data to reduce example run time)
#' DT <- DT[year(datetime) == 2016]
#'
#' # Cast the character column to POSIXct
#' DT[, datetime := as.POSIXct(datetime, tz = 'UTC')]
#'
Expand Down
3 changes: 3 additions & 0 deletions man/direction_to_leader.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/distance_to_leader.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/leader_direction_group.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92ca9c6

Please sign in to comment.