Open makratofil opened 1 year ago
I just met the same problem. And I fixed it after I set a coarser resolution (from 180 to 240) in the previous step: m <- moveVis::align_move(data, res = 240, unit = "mins")
It seems like the error is caused by the NA value in temporal interpolation.
Sometimes I get this error and sometimes I do not. It is unclear when it happens and when the NA appears or doesn't. More often I get a fatal R crash.
I am getting this error and I am wondering if there has been any progress on fixing it since the last comments?
This is going to sound crazy but I haven't been able to source any solution yet. I'm having issues creating spatial frames for MoveStack objects that contain more than 20 animal tracks:
Error in if (row1 == 1 & row2 == nrow(x) & col1 == 1 & col2 == ncol(x)) { : missing value where TRUE/FALSE needed
.My code for this worked successfully not too long ago, and I'm able to create spatial frames via
frames_spatial()
with subsets that include fewer tracks using the exact same code but for some reason not the sets with 21+. I copied the code and output below, but can connect via email if you need some of the data I'm working with (or could try with large dataset from Movebank?).The
m
object is a MoveStack object of 21 tracks and thecol12CBx2
vector is just a vector of 21 colors, one for each track. Again, this exact script works just fine for subsets of the original data that include 20 or fewer tracks (with the corresponding number of path colors).Session info: