i have a vector called yphl. the vector is all 0's and 1's.
When i do:
length(yphl)
the output is 45972
then i want to find the number of 0's and 1's split up. after looking through stackoverflow and r documentation, it's clear to me that the table function should work.. but it doesn't. i did:
table(yphl)
output is:0 at 6446 and 1 at 13553. this obviously does not add up.
is there anything else i can try? is the vector too long to compute? very confused
any help would be greatly appreciated, thanks