Re: [R] Where did lost variables go, with example

2014-01-02 Thread peter dalgaard
On 31 Dec 2013, at 17:32 , Duncan Murdoch wrote: > On 13-12-31 9:48 AM, David Parkhurst wrote: >> Two or three respondents asked for an example of my problem. Here's >> what's happening to me now. I can't reproduce how I got to this point, >> though: >> >> > ls() >> [1] "All8" "All8Sites"

Re: [R] Where did lost variables go, with example

2014-01-02 Thread PIKAL Petr
p@r-project.org > Subject: Re: [R] Where did lost variables go, with example > > Thank you. I've tried what you're suggesting, at an earlier suggestion > from another respondent, and I don't find my variable in any of lists > ls() through ls(7). > > I'm jus

Re: [R] Where did lost variables go

2014-01-02 Thread jwd
On Mon, 30 Dec 2013 20:42:53 -0500 David Parkhurst wrote: > I have several variables in a data frame that aren't listed by ls() > after I attach that data frame. Where did they go, and how can I > stop the hidden ones from masking the local ones? > Thanks for any help. > David > You really nee

Re: [R] Where did lost variables go, with example

2013-12-31 Thread David Parkhurst
Thank you. I've tried what you're suggesting, at an earlier suggestion from another respondent, and I don't find my variable in any of lists ls() through ls(7). I'm just going back to using R after being away from statistics for several years. I'm thinking I might uninstall R, then reinstall

Re: [R] Where did lost variables go, with example

2013-12-31 Thread Duncan Murdoch
On 13-12-31 11:38 AM, David Parkhurst wrote: Thank you. I've tried what you're suggesting, at an earlier suggestion from another respondent, and I don't find my variable in any of lists ls() through ls(7). Are you sure that "X" is really the name of a column in the dataframe? names(All8Sites)

Re: [R] Where did lost variables go, with example

2013-12-31 Thread Duncan Murdoch
On 13-12-31 9:48 AM, David Parkhurst wrote: Two or three respondents asked for an example of my problem. Here's what's happening to me now. I can't reproduce how I got to this point, though: > ls() [1] "All8" "All8Sites" "A" "B" "C" "i" "n" "D" "F" > X Error: object 'X' not found

Re: [R] Where did lost variables go, with example

2013-12-31 Thread David Parkhurst
Two or three respondents asked for an example of my problem. Here's what's happening to me now. I can't reproduce how I got to this point, though: > ls() [1] "All8" "All8Sites" "A" "B" "C" "i" "n" "D" "F" > X Error: object 'X' not found > attach(All8Sites) > ls() [1] "All8" "All

Re: [R] Where did lost variables go

2013-12-31 Thread Bert Gunter
Gents: I would add that: 1) attach() should probably no longer be used in R, for all the reasons (and more) cited, 2) The preferred alternative these days is to use lists, including data frames, as containers and make liberal use of the ?with and ?within functions. Environments can also be us

Re: [R] Where did lost variables go

2013-12-31 Thread Berwin A Turlach
G'day David, On Mon, 30 Dec 2013 20:42:53 -0500 David Parkhurst wrote: Some wild guesses in the absence of a reproducible example. > I have several variables in a data frame that aren't listed by ls() > after I attach that data frame. ls() list the objects in the global environment. If you

Re: [R] Where did lost variables go

2013-12-31 Thread Simon Zehnder
A reproducible example would do well here David Best Simon On 31 Dec 2013, at 02:42, David Parkhurst wrote: > I have several variables in a data frame that aren't listed by ls() > after I attach that data frame. Where did they go, and how can I stop > the hidden ones from masking the local o

[R] Where did lost variables go

2013-12-31 Thread David Parkhurst
I have several variables in a data frame that aren't listed by ls() after I attach that data frame. Where did they go, and how can I stop the hidden ones from masking the local ones? Thanks for any help. David [[alternative HTML version deleted]] ___