Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/align_move.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ align_move <- function(m, res = "minimum", start_end_time = NULL, fill_na_values
.check_move2(m)
m_tracks <- split(m, mt_track_id(m))
m_length <- if(mt_n_tracks(m) > 1) sapply(split(m, mt_track_id(m)), nrow) else nrow(m)
if(any(m_length < 2)) out(paste0("Individual track(s) ", paste0(which(m_length < 2), collapse = ", "), " of 'm' consist(s) of less than 2 locations. A minimum of 2 locations per indvidual track is required for alignment."), type = 3)
if(any(m_length < 2)) out(paste0("Individual track(s) ", paste0(which(m_length < 2), collapse = ", "), " of 'm' consist(s) of less than 2 locations. A minimum of 2 locations per individual track is required for alignment."), type = 3)

# check resolution and define resolution
if(all(!c(inherits(res, "units"), inherits(res, "character")))) out("Argument 'res' must either be a 'units' object or one of c('minimum', 'maximum', 'mean', 'median').", type = 3)
Expand Down Expand Up @@ -223,4 +223,4 @@ align_move <- function(m, res = "minimum", start_end_time = NULL, fill_na_values
m_aligned$interpolated <- NULL

return(m_aligned)
}
}