Thanks so much, that worked!
- Original Message -
From: "Don MacQueen"
To: "Alice Domalik" <9a...@queensu.ca>, r-help@r-project.org
Sent: Friday, August 5, 2016 2:18:16 PM
Subject: Re: [R] adding a date column with dplyr
What's wrong with this?
What's wrong with this?
df$Night <- as.POSIXct( paste(format(df$Date,'%Y-%m-%d'),'21:30'))
or
df$Night <- trunc(df$Date,'day') + 21*60*60 + 30*60
I believe both of those satisfy "the day of tracking for each animal, but
with the time of 21:30". But perhaps you meant the day that tracking
starte
Hi all,
I'm having some difficulties adding a conditional element to my code.
I have a time series data set that contains GPS tracking coordinates for a
population of animals.
IDDate Latitude
Longitude
15K12 2014-05-22 04:33
3 matches
Mail list logo