Skip to content
Back to formatted view

Raw Message

Message-ID: <1330507638875-4431039.post@n4.nabble.com>
Date: 2012-02-29T09:27:18Z
From: Sarah84
Subject: Export nls object to text file

Hi all,

I am new to R and have some trouble with exporting results from a non linear
squares object (.nls), would be very thankful if anyone could help me.

So what I'm doing is a Bass modelling of some data. The result is stored in
the object "Bass.nls". I want to  export a matrix with the three columns:
observation number, actual observation value, predicted observation value. 
Can I do this somehow? If not can I export the full nls object somehow? When
trying the to export using,

write.table(Bass.nls)

I get the following error message:

Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
stringsAsFactors) : 
  cannot coerce class '"nls"' into a data.frame

I am thankful for all help I can get!

Sincerely yours



--
View this message in context: http://r.789695.n4.nabble.com/Export-nls-object-to-text-file-tp4431039p4431039.html
Sent from the R help mailing list archive at Nabble.com.