Round date takes a date time object and time unit and rounds it to the nearest value of the specified time unit. Make dealing with dates a little easier. For example 2018 02 31 is in a sense three days after 2018 02 28 so r resolves the date to 2018 03 03.