[R] problems saving and loading (PLMset) objects
Quin Wills
wills at stats.ox.ac.uk
Tue Jul 31 01:18:31 CEST 2007
Ah, didn't realize that I couldn't re-assign in one step... I was trying to
load in various data (on separate occasions), using a common object name to
run through some template code.
Many thanks!
-----Original Message-----
From: jim holtman [mailto:jholtman at gmail.com]
Sent: 30 July 2007 23:51
To: Quin Wills
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] problems saving and loading (PLMset) objects
you just need to say:
load("expr.RData")
You should not be assigning it to 'expr' since it is already 'load'ed
On 7/30/07, Quin Wills <wills at stats.ox.ac.uk> wrote:
> Hi
>
>
>
> I'm running the latest R on a presumably up to date Linux server.
>
>
>
> 'Doing something silly I'm sure, but can't see why my saved PLMset objects
> come out all wrong. To use an example:
>
>
>
> Setting up an example PLMset (I have the same problem no matter what
example
> I use)
>
> > library(affyPLM)
>
> > data(Dilution) # affybatch object
>
> > Dilution = updateObject(Dilution)
>
> > options(width=36)
>
> > expr <- fitPLM(Dilution)
>
>
>
>
>
> This works, and I'm able to get the probeset coefficients with
coefs(expr).
> until I save and try reloading:
>
> > save(expr, file="expr.RData")
>
> > rm(expr) # just to be sure
>
> > expr <- load(expr.RData)
>
>
>
>
>
> Now, running coefs(expr) says:
>
> > Error in function (classes, fdef, mtable) : unable to find an inherited
> method for function "coefs", for signature "character"
>
>
>
>
>
> Trying str(exp) just gives the following:
>
> > chr "exp"
>
>
>
> expr.Rdata appears to save properly (in that there is an actual file with
> notable size in my working directory).
>
>
>
> Thanks in advance,
>
> Quin
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list