怎么我按照流程xtabs用不了?
x<-data.frame(name=c("a","b","a","b","b"),sex=c("m","f","f","f","m"),age=c(10,15,NA,11,56))
head(x)
tail(x)
summary(x)
xtabs(Freq~sex+name,data=x)
x<-data.frame(name=c("a","b","a","b","b"),sex=c("m","f","f","f","m"),age=c(10,15,NA,11,56))
head(x)
tail(x)
summary(x)
xtabs(Freq~sex+name,data=x)
2019-03-07
举报