Learn R Programming

ebirdst (version 2.2021.1)

date_to_st_week: Get the Status and Trends week that a date falls into

Description

Get the Status and Trends week that a date falls into

Usage

date_to_st_week(dates)

Value

An integer vector of weeks numbers from 1-52.

Arguments

dates

a vector of dates.

Examples

Run this code
d <- as.Date(c("2016-04-08", "2018-12-31", "2014-01-01", "2018-09-04"))
date_to_st_week(d)

Run the code above in your browser using DataLab