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?