I love using dplyr; I use it for everything. But, the problem I'm experimenting today is the following:
I'm trying to simply filter all rows fromm my opps table where opp_date is from today. So, when I use filter(opps, as.Date(opp_date) == Sys.Date())
it's bringing today's data but also yesterday's too, from 19:00:00 onwards.
To clarify any possible problem:
- opp_date field is
POSIXct
class Sys.Date()
returns correctly my current date and time (just to check,Sys.time()
brings the correct time and date:"2017-07-21 10:06:04 COT"
)
Any idea here? Thanks to the community for all the great inputs :)