Error when using prepData for analysing coordinates (moveHMM package)

Hi I am trying to use the "moveHMM" package for the first time to analyse coordinate data.
the code I am trying to run is:

data <- prepData(Movement,type="LL", coordNames=c("Longditude","Latitude")

but I get an error saying :

x Location 2 doesn't exist.
ℹ There are only 1 column.

and I cannot understand why.
My data set consists of ID, date, Longitude, Latitude and season (2257 obsv and 7 variables)- see bellow for summary. The coordinates have been shortened my R but the data set has them fully entered.

  ID    Date       Longditude Latitude season fseason fID  
  <chr> <chr>           <dbl>    <dbl> <chr>  <fct>   <fct>
1 SM1   2019-05-07       29.4    -29.7 Autumn Autumn  SM1  
2 SM1   2019-05-07       29.4    -29.7 Autumn Autumn  SM1  
3 SM1   2019-05-07       29.4    -29.7 Autumn Autumn  SM1  
4 SM1   2019-05-07       29.4    -29.7 Autumn Autumn  SM1  
5 SM1   2019-05-08       29.4    -29.7 Autumn Autumn  SM1  
6 SM1   2019-05-08       29.4    -29.7 Autumn Autumn  SM1  

please can someone help?

can you share (part of) this object ?

dput(head(Movement))
structure(list(ID = c("SM1", "SM1", "SM1", "SM1", "SM1", "SM1"
), Date = c("2019-05-07", "2019-05-07", "2019-05-07", "2019-05-07", 
"2019-05-08", "2019-05-08"), Longditude = c(29.3656, 29.369317, 
29.3691, 29.36905, 29.369133, 29.367517), Latitude = c(-29.725933, 
-29.72395, -29.726067, -29.725867, -29.726383, -29.725083), season = c("Autumn", 
"Autumn", "Autumn", "Autumn", "Autumn", "Autumn"), fseason = structure(c(1L, 
1L, 1L, 1L, 1L, 1L), .Label = c("Autumn", "Spring", "Sumer", 
"Summer", "Winter"), class = "factor"), fID = structure(c(1L, 
1L, 1L, 1L, 1L, 1L), .Label = c("SM1", "SM2", "SM22nd"), class = "factor")), row.names = c(NA, 
-6L), class = c("tbl_df", "tbl", "data.frame"))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.