首先我们职位的数据因为都是字符串类型然后发现R语言对字符串的空值会用””来补齐就不能检查缺失值
我就采用which来查看缺失值的下标
查看占比数量可以定用什么来补齐看图可以得可以用未知或NA来补齐了
代码实现
player <- read.csv(“abalone.csv”,T,encoding=“UTF-8”)
head(player)
str(player)
sum(!complete.cases(player))
player <- read.csv(“总体.csv”,T,encoding=“UTF-8”)
head(player)
str(player)
m<-which(playerKaTeX parse error: Expected '}', got 'EOF' at end of input: …m){ if(pl