결측치 제거

Jmnote bot (토론 | 기여)님의 2021년 9월 24일 (금) 23:37 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

결측치 제거

2 R[ | ]

df <- read.table( header=TRUE, stringsAsFactors=FALSE, text="
Class  Name English Math
    A Alice      90   60
    A   Bob      80   NA
    B Carol      NA   80
    B  Dave      60   90
")
df
##   Class  Name English Math
## 1     A Alice      90   60
## 2     A   Bob      80   NA
## 3     B Carol      NA   80
## 4     B  Dave      60   90
na.omit(df)
##   Class  Name English Math
## 1     A Alice      90   60
## 4     B  Dave      60   90

3 같이 보기[ | ]

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