You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @param xs UTM eastings matrix (`n_inds` x `n_times` matrix where xs[i,t] gives the easting of individual i at time step t)
15
-
#' @param ys UTM northings matrix (`n_inds` x `n_times` matrix where ys[i,t] gives the northing of individual i at time step t)
14
+
#' @param xs UTM eastings matrix (`n_inds` x `n_times` matrix where xs\[i,t\] gives the easting of individual i at time step t)
15
+
#' @param ys UTM northings matrix (`n_inds` x `n_times` matrix where ys\[i,t\] gives the northing of individual i at time step t)
16
16
#' @param timestamps vector of timestamps (POSIXct), must have same dimensions as columns of `xs` and `ys` matrices
17
17
#' @param calls data frame where first column (`'ind_idx'`) specifies the index of the individual that gave the call, second column (`'time_idx'`) specifies the time index at which the call was given, and third column (`'call_type'`) specifies the type of call (character string)
18
18
#' @param start_time time index at which to start the video
#' @param xs `N x n_times` matrix giving x coordinates of each individual over time
10
10
#' @param ys `N x n_times` matrix giving y coordinates of each individual over time
11
11
#' @param heading_type character string specifying heading type - `'spatial'` or `'temporal'`
12
12
#' @param spatial_R radius to use for spatial headings (if `heading_type = 'spatial'`)
13
13
#' @param t_window temporal window to use for temporal headings (if `heading_type = 'temporal'`)
14
14
#' @param forward whether to compute headings into the future (`forward = T`) or the past (`forward = F`)
15
-
#' @param min_inds_tracked if specified, sets a minimum number of individuals that must be tracked at any moment in time to compute heading (otherwise the heading will be NA at that time point
15
+
#' @param min_inds_tracked if specified, sets a minimum number of individuals that must be tracked to use that time point in computing heading. headings, speeds, and dt that would rely on data with an insufficient number of individuals will be reported as NA.
16
16
#' @param seconds_per_time_step number of seconds corresponding to each time step
17
17
#'
18
18
#' @returns Returns the group heading over time, a vector of length `n_times`
#' @param xa: x coordinates for individual a (vector of length `n_times`)- must be continuous data (no NAs)
9
-
#' @param xb: x coordinates for individual b (vector of length `n_times`)- must be continuous data (no NAs)
10
-
#' @param ya: x coordinates for individual a (vector of length `n_times`)- must be continuous data (no NAs)
11
-
#' @param yb: x coordinates for individual b (vector of length `n_times`)- must be continuous data (no NAs)
12
-
#' @param a: index of the first individual
13
-
#' @param b: index of the second individual
14
-
#' @param noise_thresh: noise threshold (defaults to 5 m)
15
-
#' @param plot_results: whether to plot results or not
16
-
#' @param include_initial_fusion: if T, the function will also output an initial fusion event. In most use cases, this should be set to false. See below for details.
17
-
#' @param include_final_fission: if T, the funciton will also output a final fission event. In most use cases, this should be set to false. See below for details.
8
+
#' @param xa x coordinates for individual a (vector of length `n_times`)- must be continuous data (no NAs)
9
+
#' @param xb x coordinates for individual b (vector of length `n_times`)- must be continuous data (no NAs)
10
+
#' @param ya x coordinates for individual a (vector of length `n_times`)- must be continuous data (no NAs)
11
+
#' @param yb x coordinates for individual b (vector of length `n_times`)- must be continuous data (no NAs)
12
+
#' @param a index of the first individual
13
+
#' @param b index of the second individual
14
+
#' @param noise_thresh noise threshold (defaults to 5 m)
15
+
#' @param plot_results whether to plot results or not
16
+
#' @param include_initial_fusion if T, the function will also output an initial fusion event. In most use cases, this should be set to false. See below for details.
17
+
#' @param include_final_fission if T, the funciton will also output a final fission event. In most use cases, this should be set to false. See below for details.
0 commit comments