Creating a text codebook
Something like summary() will produce the start of a codebook for a dataset within a data.frame, but it probably would need to be munged up a bit more. Actually, the first use of literate statistical analysis (noweb-style) was done to produce a codebook.
On Thu, 30 Sep 2004 14:35:03 -0400, John Fox <jfox at mcmaster.ca> wrote:
Dear Harold, I'm not sure what you have in mind, but take a look at the prompt() function, which can create a skeleton .Rd (R documentation) for a data frame. It will distinguish between numeric variables and factors, and will show the various levels of each factor. I don't think that there's any other "relevant information" in the data frame. I hope that this helps, John
-----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Doran, Harold Sent: Thursday, September 30, 2004 11:39 AM To: r-help at stat.math.ethz.ch Subject: [R] Creating a text codebook Is there a currently existing method in an R package for creating a codebook from a dataframe? Preferably, I would like to be able to export to a text file all relevant information.
______________________________________________ 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
A.J. Rossini blindglobe at gmail.com