📅  最后修改于: 2022-03-11 14:58:25.498000             🧑  作者: Mango
代码示例1
start = as.Date("2012-03-01")
end = as.Date("2017-03-01")
# method 2
as.numeric(difftime(end, start, unit = "weeks")) / 52.25