Skip to content

animalEKF

Extended Kalman Filters for Animal Movement

v1.3 · Aug 20, 2025 · GPL (>= 2)

Description

Synthetic generation of 1-D and 2-D correlated random walks (CRWs) for animal movement with behavioral switching, and particle filter estimation of movement parameters from observed trajectories using Extended Kalman Filter (EKF) model. See Ackerman (2018) <https://digital.library.temple.edu/digital/collection/p245801coll10/id/499150>.

Downloads

260

Last 30 days

12223rd

531

Last 90 days

531

Last year

Trend: -4.1% (30d vs prior 30d)

CRAN Check Status

5 ERROR
9 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc ERROR
r-devel-macos-arm64 OK
r-devel-windows-x86_64 ERROR
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids <- cbind(X=runif(2), Y=runif(2))
> 
> #one log observation with dt =18 > 16 will be omitted
> spl <- spline_interp(di=di, area_map=NULL, reg_dt=3, max_dt_wo_obs=16, maxStep=NULL, 
+                      centroids=region_centroids, nstates=2, spline_deg=3, split_logv=-3)
[1] "assuming all observations are for one animal"
[1] "overall date range"
[1] "1970-01-01" "1970-01-01"
[1] "GSH01"
[1] "Shark GSH01 8 observations"
[1] "GSH01"
[1] "8 observations used for spline"
[1] "calculating transition probabilities"
[1] "calculating state classification"
[1] "GSH01"
> 
> plot(di[,c("X","Y")], xlim=c(0,1), ylim=c(0,1), type="b", las=1,
+      "Observations interpolated by regular interval spline")
Error in str2lang(x) : <text>:1:14: unexpected symbol
1: Observations interpolated
                 ^
Calls: plot ... <Anonymous> -> formula -> formula.character -> str2lang
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids <- cbind(X=runif(2), Y=runif(2))
> 
> #one log observation with dt =18 > 16 will be omitted
> spl <- spline_interp(di=di, area_map=NULL, reg_dt=3, max_dt_wo_obs=16, maxStep=NULL, 
+                      centroids=region_centroids, nstates=2, spline_deg=3, split_logv=-3)
[1] "assuming all observations are for one animal"
[1] "overall date range"
[1] "1970-01-01" "1970-01-01"
[1] "GSH01"
[1] "Shark GSH01 8 observations"
[1] "GSH01"
[1] "8 observations used for spline"
[1] "calculating transition probabilities"
[1] "calculating state classification"
[1] "GSH01"
> 
> plot(di[,c("X","Y")], xlim=c(0,1), ylim=c(0,1), type="b", las=1,
+      "Observations interpolated by regular interval spline")
Error in str2lang(x) : <text>:1:14: unexpected symbol
1: Observations interpolated
                 ^
Calls: plot ... <Anonymous> -> formula -> formula.character -> str2lang
Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids <- cbind(X=runif(2), Y=runif(2))
> 
> #one log observation with dt =18 > 16 will be omitted
> spl <- spline_interp(di=di, area_map=NULL, reg_dt=3, max_dt_wo_obs=16, maxStep=NULL, 
+                      centroids=region_centroids, nstates=2, spline_deg=3, split_logv=-3)
[1] "assuming all observations are for one animal"
[1] "overall date range"
[1] "1970-01-01" "1970-01-01"
[1] "GSH01"
[1] "Shark GSH01 8 observations"
[1] "GSH01"
[1] "8 observations used for spline"
[1] "calculating transition probabilities"
[1] "calculating state classification"
[1] "GSH01"
> 
> plot(di[,c("X","Y")], xlim=c(0,1), ylim=c(0,1), type="b", las=1,
+      "Observations interpolated by regular interval spline")
Error in str2lang(x) : <text>:1:14: unexpected symbol
1: Observations interpolated
                 ^
Calls: plot ... <Anonymous> -> formula -> formula.character -> str2lang
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids <- cbind(X=runif(2), Y=runif(2))
> 
> #one log observation with dt =18 > 16 will be omitted
> spl <- spline_interp(di=di, area_map=NULL, reg_dt=3, max_dt_wo_obs=16, maxStep=NULL, 
+                      centroids=region_centroids, nstates=2, spline_deg=3, split_logv=-3)
[1] "assuming all observations are for one animal"
[1] "overall date range"
[1] "1970-01-01" "1970-01-01"
[1] "GSH01"
[1] "Shark GSH01 8 observations"
[1] "GSH01"
[1] "8 observations used for spline"
[1] "calculating transition probabilities"
[1] "calculating state classification"
[1] "GSH01"
> 
> plot(di[,c("X","Y")], xlim=c(0,1), ylim=c(0,1), type="b", las=1,
+      "Observations interpolated by regular interval spline")
Error in str2lang(x) : <text>:1:14: unexpected symbol
1: Observations interpolated
                 ^
Calls: plot ... <Anonymous> -> formula -> formula.character -> str2lang
Execution halted
OK r-devel-macos-arm64

*


            
ERROR r-devel-windows-x86_64

examples

Running examples in 'animalEKF-Ex.R' failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids <- cbind(X=runif(2), Y=runif(2))
> 
> #one log observation with dt =18 > 16 will be omitted
> spl <- spline_interp(di=di, area_map=NULL, reg_dt=3, max_dt_wo_obs=16, maxStep=NULL, 
+                      centroids=region_centroids, nstates=2, spline_deg=3, split_logv=-3)
[1] "assuming all observations are for one animal"
[1] "overall date range"
[1] "1970-01-01" "1970-01-01"
[1] "GSH01"
[1] "Shark GSH01 8 observations"
[1] "GSH01"
[1] "8 observations used for spline"
[1] "calculating transition probabilities"
[1] "calculating state classification"
[1] "GSH01"
> 
> plot(di[,c("X","Y")], xlim=c(0,1), ylim=c(0,1), type="b", las=1,
+      "Observations interpolated by regular interval spline")
Error in str2lang(x) : <text>:1:14: unexpected symbol
1: Observations interpolated
                 ^
Calls: plot ... <Anonymous> -> formula -> formula.character -> str2lang
Execution halted
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 9 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_se
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_se
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids 
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘animalEKF-Ex.R’ failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids 
ERROR r-devel-windows-x86_64

examples

Running examples in 'animalEKF-Ex.R' failed
The error most likely occurred in:

> ### Name: spline_interp
> ### Title: Bezier spline interpolation of observations.
> ### Aliases: spline_interp
> ### Keywords: dplot optimize
> 
> ### ** Examples
> 
> #can also be 'di' output of sim_trajectory_joint (set gen_irreg=TRUE)
> 
> di <- data.frame(X=runif(n=9), Y=runif(n=9),
+                  time_to_next=c(2,4,15,8,5,18,3,5,NA))
> di$date_as_sec <- c(0, cumsum(di$time_to_next[-9]))
> region_centroids 

Dependency Network

Dependencies Reverse dependencies shiny sp sf MCMCpack ellipse mvtnorm deldir colorspace Matrix MASS png bezier HDInterval plyr ggplot2 +1 more dependencies animalEKF

Version History

new 1.3 Mar 9, 2026