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

Duncan Murdoch murdoch at stats.uwo.ca
Wed Jul 22 14:12:52 CEST 2009


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 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, etc...
> 
> And another question - how to save workspace to a custom location while
> running R? Is there any command for that?

save.image(file="mycustomlocation")


Duncan Murdoch




More information about the R-help mailing list