Skip to content
Back to formatted view

Raw Message

Message-ID: <48BD1149.1090703@bitwrit.com.au>
Date: 2008-09-02T10:11:21Z
From: Jim Lemon
Subject: Exporting frequency distributions
In-Reply-To: <f5ece63d1dbb.48bc3952@unal.edu.co>

Luz Milena Zea Fernandez wrote:
> Dear support, we are trying to export a frequency distributions obtanined by stament freq(x,variable.labels=NULL,display.na=TRUE,levels=NULL)
> of prettyR.
> How can I do it?
>   
Hi Luz,
If you want to export (save to a file) the output of freq:

sink("myfile.out")
freq(x,variable.labels=NULL,display.na=TRUE,levels=NULL)
sink()

If you want to export the object that freq returns (a list with as many 
components as there are frequency tables), you could try some variant of 
lapply, although I haven't figured out how to get it to print the 
components without also printing the object passed.

Jim