2016-07-22 65 views

回答

1

如果你想相對頻率,只是做

prop.table(table(lungdata$smoke)) 

而且應該做的伎倆。如果你想計數,而不是百分比,只需使用

table(lungdata$smoke)