MONTH: Basic MONTH function from excel

Description Usage Arguments Value Examples

View source: R/MONTH.R

Description

It acts similiarly to Excel's MONTH function. It extracts the month part from the date.

Usage

1

Arguments

date

Enter the date to get the month from.

Value

In this case the function will give you 12 as it is the month of the date we have specified.Function will always return numeric class.

Examples

1
MONTH(DATE(2020,12,1))

Example output

[1] 12

ExcelFunctionsR documentation built on July 1, 2020, 8:35 p.m.