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?
try
table(train$sex, useNA = "always")
It shows same reply
well, i mistyped Sex as sex, so change that.
anyway table is a different function from summary, the result will be different...
no.
you wrote summary(
rather than table(
yes, problem solved, Thank you
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.