Displaying 1 result from an estimated 1 matches for "hasphq".
Did you mean:
hash
2011 May 29
1
Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?
...ught I
had a variable AllDat$PHQ and started using it and everything seemed
fine until I realised that I shouldn't have it (!) and that the variable
I was thinking of is AllDat$PHQ9 and that's there:
> colnames(AllDat)[grep("PHQ",colnames(AllDat))]
[1] "PHQ9" "HasPHQ" "ZeroPHQ"
and, as you can see, AllDat$PHQ. But I can I do:
> head(table(AllDat$PHQ))
0 1 2 3 4 5
731 527 764 845 872 915
Ooops ... so AllDat$PHQ _DOES_ exist. Its contents exactly match
AllDat$PHQ9:
> table(abs(AllDat$PHQ - AllDat$PHQ9))
0
19032
I have s...