Re: [R] (no subject)

From: Simon Blomberg <>
Date: Thu 17 Mar 2005 - 14:43:34 EST

I assume "opened a data set" means that you have attached a data frame. If you add new variables to the data frame (e.g. by transforming a variable in that data.frame), you will have to detach() and re- attach() it in order to get access to the variables without using the $ operator. I think this is in the manual somewhere.



>Dear R
>I recently created some variables in R as in I opened a data set and then
>produced log base 10 transformations on some of the variables. When I ask R
>to do a simple x, y plot it recognises the raw data but does not recognise
>the log transformed variables. It says
>> plot(logbrw, ParaSleep, type="n")
>Error in plot(logbrw, ParaSleep, type = "n") :
> Object "logbrw" not found
>> text(logbrw, ParaSleep, labels=row.names(sleep), cex=0.8, col="blue")
>Error in text(logbrw, ParaSleep, labels = row.names(sleep), cex = 0.8, :
> Object "logbrw" not found
>So do I have to somehow change the data for R to recognise the newly created
>What should I do?
> mailing list
>PLEASE do read the posting guide!

Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat.
Visiting Fellow
School of Botany & Zoology
The Australian National University
Canberra ACT 0200

T: +61 2 6125 8057  email:
F: +61 2 6125 5573

CRICOS Provider # 00120C

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Thu Mar 17 14:49:18 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:50 EST