R year()

1 개요[ | ]

R year()
  • "Get/Set Years Component Of A Date-Time"
x <- ymd("2012-03-26")
year(x)
## [1] 2012
year(x) <- 2001
x
## [1] "2001-03-26"
year(x) > 1995
## [1] TRUE

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}