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
______________________________________________
R-help@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.