Summary method problem

I want to know the no of male and female of a row named Sex of a dataset. Here I have used summary(train$Sex) method, but but this method shows me "Length Class Mode" valued -> 891 character character. I want to see as "Male Female" valued -> 100 200, what is the problem here?


table(train$sex, useNA = "always")

It shows same reply :frowning:

well, i mistyped Sex as sex, so change that.
anyway table is a different function from summary, the result will be different...

I wrote perfectly

you wrote summary(

rather than table(

yes, problem solved, Thank you :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.