Dear Friends. I have a very long expression and I use function D to find its derivative, which will be even longer. I save the resulting expression in a variavle, say bbb. But when I tried to display bbb on the screen, the R screen is not long enough for me to view it. Is there a way to save the expression to a file? Best Wishes Yuchen Luo [[alternative HTML version deleted]]
Maybe use the sink() function> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Yuchen Luo > Sent: Thursday, August 02, 2007 10:17 PM > To: r-help at stat.math.ethz.ch > Subject: [R] Saving an expression to a file > > Dear Friends. > I have a very long expression and I use function D to find > its derivative, which will be even longer. I save the > resulting expression in a variavle, say bbb. But when I tried > to display bbb on the screen, the R screen is not long enough > for me to view it. Is there a way to save the expression to a file? > > Best Wishes > Yuchen Luo > > [[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. >
See ?save Also you might be able to use the Ryacas package to simplify your derivative. See Simplify in 5.5 of: http://ryacas.googlecode.com/svn/trunk/inst/doc/Ryacas.pdf More info at: http://code.google.com/p/ryacas/ On 8/2/07, Yuchen Luo <realityrandom at gmail.com> wrote:> Dear Friends. > I have a very long expression and I use function D to find its derivative, > which will be even longer. I save the resulting expression in a variavle, > say bbb. But when I tried to display bbb on the screen, the R screen is not > long enough for me to view it. Is there a way to save the expression to a > file? > > Best Wishes > Yuchen Luo > > [[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. >