monthIndex: Serial number of a month

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 April 25, 2024, 9:14 a.m.