search for: dataexp

Displaying 1 result from an estimated 1 matches for "dataexp".

2008 Jun 29
1
function to export data
Hi, I’m trying to built a simple function that allows me to export automatically some results to a text file. I’ve tried the two following approaches but none worked. > exportdata<-function(x) { + dataexp<-summary(x) + export(dataexp,type="ascii",file="dataexp.txt") + } > exportdata(glm.poisson0) Error in eval(expr, envir, enclos) : object "dataexp" not found exportdata2<-function(x) { sink("exportdata2.txt") summary(x) sink()...