create_isoweek-methods: Creates weeks in the format ISOweek from week and year...

create_isoweekR Documentation

Creates weeks in the format ISOweek from week and year provided as numerical formats

Description

Creates weeks in the format ISOweek from week and year provided as numerical formats

Usage

create_isoweek(week, year, reference.day = 1)

Arguments

week

the week of the year

year

the year

reference.day

the ISOweek format also stores the actual day of the week, creating a daily sequence. users can set a reference day. if only interested in weekly data, it's suggested to leave as the default reference.day=1

Examples

create_isoweek(11,2014)
dates <- data.frame (week=1:10, year=2014)
    ISOweek <- create_isoweek(dates$week,dates$year)
    dates <- cbind(ISOweek,dates)


nandadorea/vetsyn documentation built on April 30, 2022, 1:15 a.m.