Dear list

I am trying to convert a dataframe first into a SpatialPointsDataFrame and then into a "trip" object.
The last line gives error message
"Error in validityMethod(object) :
trip only handles dates and times as POSIXt objects"
However, track_1646$Datm seems to be in the formant wanted by trip(), a two-element character vector specifying date and time of the records.
What am I doing wrong ?
Thank you very much for any help.
Juliane

library(PBSMapping)
library(Trip)
track_1646=read.table("1646_2.txt", sep="\t", header=TRUE)
attr(track_1646, "projection") <- c("LL")
track_1646<- convUL(track_1646,km=FALSE)
track_1646$Datm <- as.POSIXct(strptime(paste(track_1646$date, track_1646$Time), "%d/%m/%Y %H:%M:%S"))
coordinates(track_1646)= c("X","Y")
class(track_1646)
track_1646
trip(track_1646,c("id","Datm"))

	[[alternative HTML version deleted]]

