R 데이터프레임 특정날짜 이전 행 제거

1 개요[ | ]

R 데이터프레임 특정날짜 이전 행 제거
df <- read.table( header=T, stringsAsFactors=FALSE, text="
date        fruit    ea
2019-06-01  apple    1
2019-06-02  apple    1
2019-06-03  banana   2
2019-06-04  apple    3
2019-06-05  banana   4
")
df
df[df$date >= "2019-06-03",]

2 같이 보기[ | ]

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