Message-ID: <b3d2636a-93fc-4b4e-be87-8805d10d8965@email.android.com>
Date: 2012-05-31T20:19:52Z
From: Jeff Newmiller
Subject: print.data.frame to string?
In-Reply-To: <CAPr7RtXUthotvkRO7MtAZ8rF4JiSW74D90Li75dDQMR6oqV5Lg@mail.gmail.com>
capture.output(print(mydf))
note that df is a base function... best to not use it as a variable.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
ivo welch <ivo.welch at gmail.com> wrote:
>dear R experts---is there a function that prints a data frame to a
>string?
>cat() cannot handle lists, so I cannot write cat("your data frame
>is:\n",
>df, "\n").
>
>regards, /iaw
>----
>Ivo Welch (ivo.welch at gmail.com)
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org 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.