Skip to content
Prev 4897 / 7420 Next

Issue with ltraj function in R for movement analysis

Hi,

A few issues here.  From your code it appears that the date you are feeding
as.ltraj is not unique (140403).  You need to combine date and time then
convert to POSIXct.  Another thing is that, as written, das is a character
vector (das <- as.character(data$NewDate))  which is what is being fed to
as.ltraj.  You define das again as:  das <-
as.POSIXct(strptime(as.character(data$NewDate).  This should be throwing an
error since you did not give the format for strptime.

To rediscretize temporally or spatially see ?redisltraj.


--------------------------------------------------------
Jason G. Romine, Ph.D.
USGS Western Fisheries Research Center
5501A Cook-Underwood Road
Cook, WA 98605
Email:jromine at usgs.gov
Website: http://wfrc.usgs.gov
---------------------------------------------------------
On Sun, Feb 8, 2015 at 7:19 PM, alittle <alittle139 at gmail.com> wrote: