Re: [R] How to list R object properties & save workspace?

2009-07-23 Thread gug
Hi Matej, You can also try: sapply(ls(), function(x) object.size(get(x))) or eapply(.GlobalEnv, object.size) which list all objects - as with ls() - but giving their sizes. I'm also quite new to R so am not sure which other properties you could hope to get out of it, but by substituting an

Re: [R] How to list R object properties & save workspace?

2009-07-22 Thread Duncan Murdoch
On 22/07/2009 7:22 AM, Matej Kovacic wrote: Hi, I am new to R and have a couple of questions. I know how to list all objects (with ls()), but how to list all properties of them? ls.str() gives more info than ls(). str() on a particular one gives more detail. For instance, I found functi

Re: [R] How to list R object properties & save workspace?

2009-07-22 Thread Liviu Andronic
Hello, On Wed, Jul 22, 2009 at 1:22 PM, Matej Kovacic wrote: > I know how to list all objects (with ls()), but how to list all > properties of them? > > For instance, I found function object.size(), but I would also like to > know whether one object is a dataset or just one vector (variable) or >

[R] How to list R object properties & save workspace?

2009-07-22 Thread Matej Kovacic
Hi, I am new to R and have a couple of questions. I know how to list all objects (with ls()), but how to list all properties of them? For instance, I found function object.size(), but I would also like to know whether one object is a dataset or just one vector (variable) or even only one value,