Skip to content
Prev 311910 / 398503 Next

Finding the Degrees of Freedom in a Wilcoxon Test

On Nov 25, 2012, at 2:06 PM, sm2284 wrote:

            
It complicates the human interpretation of code to have reserved words  
(of which 'TRUE' is one) used as a name of an object (or an object  
element. You seen to be getting away with it because you are not  
reporting an error message, but it is deemed poor practice. If you  
have the fortunes package installed try typing:

fortunes::fortune("dog")

Usually it does cause the interpreter confusion if you only use  
function names as column names,  but I can create pathological results  
if I test for TRUE > 500 in a dataset where half of the rows should  
meet that criterion. Since TRUE becomes 1 when coerced to numeric, I  
get no rows from subset().