sh_month {shide}R Documentation

Get/set the month component of Jalali date-time objects

Description

Get/set the month component of Jalali date-time objects

Usage

sh_month(x)

## S3 method for class 'jdate'
sh_month(x)

## S3 method for class 'jdatetime'
sh_month(x)

sh_month(x) <- value

## S3 replacement method for class 'jdate'
sh_month(x) <- value

## S3 replacement method for class 'jdatetime'
sh_month(x) <- value

Arguments

x

A vector of jdate or jdatetime objects.

value

A numeric vector.

Details

For assignment, x and value are recycled to their common size using tidyverse recycling rules.

Value

The month component of x as an integer.

Examples

x <- jdate("1402-12-14")
sh_month(x)
sh_month(x) <- 10:11

[Package shide version 0.2.1 Index]