powered by
Get/set the month component of Jalali date-time objects
sh_month(x)# S3 method for jdate sh_month(x)# S3 method for jdatetime sh_month(x)sh_month(x) <- value# S3 method for jdate sh_month(x) <- value# S3 method for jdatetime sh_month(x) <- value
# S3 method for jdate sh_month(x)
# S3 method for jdatetime sh_month(x)
sh_month(x) <- value
# S3 method for jdate sh_month(x) <- value
# S3 method for jdatetime sh_month(x) <- value
The month component of x as an integer.
A vector of jdate or jdatetime objects.
jdate
jdatetime
A numeric vector.
For assignment, x and value are recycled to their common size using tidyverse recycling rules.
x
value
x <- jdate("1402-12-14") sh_month(x) sh_month(x) <- 10:11
Run the code above in your browser using DataLab