Displaying 1 result from an estimated 1 matches for "saveresults".
2005 Feb 23
1
Problem saving logic regression result equation to disk file
...od enough but I can't "cat" that
either:
> logicfit$model
+1 * (X6 and (not X2))
> cat(logicfit$model)
Error in cat(list(...), file, sep, fill, labels, append) :
argument 1 not yet handled by cat
Using sink to get this result seems to be a huge kludge:
> sink("saveresults.txt")
> logicfit$model
> sink()
> results <- readLines("saveresults.txt")
> results
[1] " +1 * (X6 and (not X2))"
# FINALLY something I could write this result to a file:.
> cat(results, "\n")
+1 * (X6 and (not X2))
What is a simple way to ge...