# df의 time이 date 형식일 때, year, month 추출
# year
year(df$time)
# month
month(df$time)
'R' 카테고리의 다른 글
[R] correlation (0) | 2021.08.31 |
---|---|
[R] ggplot color palette (0) | 2021.08.25 |
[R] category 형 변수 Label encoding (0) | 2021.08.24 |
[R] data.frame을 클립보드 복사 (0) | 2021.08.23 |
[R] 결측치 처리 (0) | 2021.08.22 |