With thanks to G.Grothendieck on StackOverflow.

daysIn(d)

Arguments

d

A date in the format given by as.Date

Value

An integer