R/constants.R

##
## constants.R: Convenience constants for date calculation
##
## Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
##
## This file is part of RcppBDT.
##
## RcppBDT is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 2 of the License, or
## (at your option) any later version.
##
## RcppBDT is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with RcppBDT.  If not, see <http://www.gnu.org/licenses/>.

## a simple alternative to enum type in C++ -- we could also have
## these as parts of a data.frame
Sun <- 0
Mon <- 1
Tue <- 2
Wed <- 3
Thu <- 4
Fri <- 5
Sat <- 6

## likewise, identifiers for the months
Jan <- 1
Feb <- 2
Mar <- 3
Apr <- 4
May <- 5
Jun <- 6
Jul <- 7
Aug <- 8
Sep <- 9
Oct <- 10
Nov <- 11
Dec <- 12

## and for sequences
first <- 1
second <- 2
third <- 3
fourth <- 4
fifth <- 5
eddelbuettel/rcppbdt documentation built on March 3, 2024, 10:18 a.m.