monthIndex: Serial number of a month

View source: R/monthFunctions.R

monthIndexR Documentation

Serial number of a month

Description

Given a date or a year/month combination, return the number of months since Jan 1, 1970.

Usage

monthIndex(x, ...)

## S3 method for class 'Date'
monthIndex(x)

## S3 method for class 'POSIXlt'
monthIndex(x)

## S3 method for class 'integer'
monthIndex(year, month)

## S3 method for class 'numeric'
monthIndex(year, month)

## S3 method for class 'yearmon'
monthIndex(x)

monthIndexToDate(mi)

Arguments

x

Method dependent

Value

A serial integer for the month


pteetor/tutils documentation built on March 29, 2025, 6:38 p.m.