Displaying 3 results from an estimated 3 matches for "oldwarn".
Did you mean:
oldpar
2001 Sep 27
2
on.exit
Hola!
look at the following:
> test <- function() {
+ options(warn=-1)
+ on.exit( options(warn=0))
+ log(-1)
+ }
> test()
[1] NaN
but what should be better, doesnt work:
> test1 <- function() {
+ oldwarn <- options("warn")
+ options(warn=-1)
+ on.exit( options(warn=oldwarn))
+ log(-1)
+ }
> test1()
Error in options(...) : warn parameter invalid
>
What is wrong? (I have tried other versions, without success)
Kjetil Halvorsen.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2013 Nov 03
1
WISHLIST: on.exit(..., add=TRUE, where="first") to address common use cases
Before trying to submit a patch(*) to on.exit(), I'd like to check
whether there is an interest in enhancing on.exit(..., add=TRUE) such
that it is possible to specify whether the added expression should be
added before or after already recorded expression. The default is now
to add it after, but it would often be useful to add it before
previously recorded expressions.
EXAMPLE:
foo <-
2006 Jul 03
2
could i change the ouput style on summary?
Dear friends,
summary() doesn't give a good ouput style,e.g.:
grass soiltem airtem gheight
humidity altitude
diluo :38 Min. :15.90 Min. :17.70 Min. : 8.00 Min. :
0.2360 high: 43
huanghuacai:32 1st Qu.:19.32 1st Qu.:22.60 1st Qu.:40.00 1st Qu.:
0.3190 low :119
hucao :46 Median :20.20 Median :25.30 Median :60.00