[R] Creating %d/%m/%Y %H:%M:%S format from separate date and time columns

2013-04-12 Thread Cat Cowie
Hi R forum, Each row of my data (below) show a new contact event between animals. In order to ultimately look at the patterns of intervals between contacts, I need to calculate a contact end time. The contact starts at the date and time shown in V4 and V5, and lasts for the duration shown IN

Re: [R] Creating %d/%m/%Y %H:%M:%S format from separate date and time columns

2013-04-12 Thread Pascal Oettli
Hi, The following should work: x - paste(paste(data2$V4, data2$V5), data2$V6, sep='.') startt - strptime(x, %Y-%m-%d %H:%M:%OS) Regards, Pascal 2013/4/12 Cat Cowie cat.e.co...@gmail.com Hi R forum, Each row of my data (below) show a new contact event between animals. In order to