Re: [R] Hidden information in an object

2013-03-01 Thread Rui Barradas
Hello, Inline. Em 28-02-2013 12:50, Rasmus Hedegaard escreveu: Hello, The dataset "cats" contain information about the heart weight ("Hwt"), body weight ("Bwt") and gender ("Sex") of a group of 144 cats. I write the following piece of code: library(MASS)attach(cats)ratio <- Hwt/Bwtmale <-

Re: [R] Hidden information in an object

2013-02-28 Thread David L Carlson
Below is what happens when you let hotmail format your message using html. Always use plain text emails. The command "attach(cats)" told R to put the data.frame in the search path so that the variables in cats would be visible without specifying the name of the data frame: detach(cats) data(cats)

Re: [R] Hidden information in an object

2013-02-28 Thread Ista Zahn
Hi Rasmus, Things will be much less confusing if you don't use attach. I know that sounds flippent, but I'm quite serious. Best, Ista On Thu, Feb 28, 2013 at 7:50 AM, Rasmus Hedegaard wrote: > > > > > Hello, The dataset "cats" contain information about the heart weight ("Hwt"), > body weight (