I have a dataframe: trainData
. Running table(trainData$Survived)
I obtain the following table.
No Yes
1062 490
How can I obtain just the integer value relative to the No
column?
Running this:
pNo = table(trainData$Survived)['No']
I still obtain a table in pNo
:
No
1062
While I would like to have only 1062
! How to do that?