"R as.Date()"의 두 판 사이의 차이

3번째 줄: 3번째 줄:


<source lang='r' run>
<source lang='r' run>
as.Date("2019-01-01")
as.Date("2019-08-15")
</source>
</source>
<source lang='r' run>
<source lang='r' run>
as.Date("2019.01.01", format="%Y.%m.%d")
as.Date("2019.08.15", format="%Y.%m.%d")
</source>
</source>
<source lang='r' run>
<source lang='r' run>
options(echo=T)
options(echo=T)
as.Date("2019-01-01")+100
as.Date("2019-08-15")+100
class( as.Date("2019-01-01")+100 )
class( as.Date("2019-08-15")+100 )
</source>
</source>
<source lang='r' run>
<source lang='r' run>
options(echo=T)
options(echo=T)
as.character(as.Date("2019-01-01")+100)
as.character(as.Date("2019-08-15")+100)
class( as.character(as.Date("2019-01-01")+100) )
class( as.character(as.Date("2019-08-15")+100) )
</source>
</source>



2020년 5월 14일 (목) 01:48 판

1 개요

R as.Date()
as.Date("2019-08-15")
as.Date("2019.08.15", format="%Y.%m.%d")
options(echo=T)
as.Date("2019-08-15")+100
class( as.Date("2019-08-15")+100 )
options(echo=T)
as.character(as.Date("2019-08-15")+100)
class( as.character(as.Date("2019-08-15")+100) )

2 같이 보기

3 참고

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