sh_year | R Documentation |
Get/set the year component of Jalali date-time objects
sh_year(x)
## S3 method for class 'jdate'
sh_year(x)
## S3 method for class 'jdatetime'
sh_year(x)
sh_year(x) <- value
## S3 replacement method for class 'jdate'
sh_year(x) <- value
## S3 replacement method for class 'jdatetime'
sh_year(x) <- value
x |
A vector of |
value |
A numeric vector. |
For assignment, x
and value
are recycled to their common size using
tidyverse recycling rules.
The year component of x as an integer.
x <- jdate("1402-12-14")
sh_year(x)
sh_year(x) <- 1400:1401
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.