The bits you need for collecting warnings are described on the
`warning' help page, though rather tersely. The implementation of
suppressWarnings provides an example:
> suppressWarnings
function (expr)
{
withCallingHandlers(expr,
None that I know of, but having seen what Tablecurve could do (on DOS) more
than 11 years ago (when `data-mining' was still a dirty word), I don't think
that sort of analysis should be encouraged at all...
Andy
> From: Ronaldo Reis Jr.
> Sent: Thursday, June 03, 2004 4:29 PM
> To: R-Help
> Subjec
Marcus Davy wrote:
Hi,
If you choose to use LaTeX and xtable, you can also enhance the visual
presentation
of the output tables using the booktab LaTeX package. Have a look at:
http://www.ecs.soton.ac.uk/~srg/softwaretools/document/start/booktabs.pdf
You can change the horizontal line tags \hline t
Hi,
If you choose to use LaTeX and xtable, you can also enhance the visual
presentation
of the output tables using the booktab LaTeX package. Have a look at:
http://www.ecs.soton.ac.uk/~srg/softwaretools/document/start/booktabs.pdf
You can change the horizontal line tags \hline to \toprule, \mid
Seeing this question I was thinking of using tryCatch() to "catch" warnings.
Here is an example:
doWarn <- function() {
a <<- 1
warning("Wow!")
a <<- 2
}
lastError <- lastWarning <- NULL
tryCatch({
x <- 2
doWarn()
x <- 3
stop("Oops.")
x <- 4
}, warning = function(warn) {
last
Thanks.
This is now OBE, I downloaded the R-Patched version
from 30 May, added the VR bundle and am all set for now.
On Thu, 3 Jun 2004, Prof Brian Ripley wrote:
Date: Thu, 3 Jun 2004 23:01:08 +0100 (BST)
From: Prof Brian Ripley <[EMAIL PROTECTED]>
To: Al Piszcz <[EMAIL PROTECTED]>
Cc: Uwe Ligges
That's because R-devel and R-patched have a workaround for a bug in the
latest gcc: see the NEWS file.
On Sun, 30 May 2004, Al Piszcz wrote:
>
> I downloaded and built the development version
> of R dated 30 May. make check, and prcomp
> were successful.
>
>
>
> On Sun, 30 May 2004, Uwe Ligg
I was wondering how to create an if-then statement that compares two
strings.
I tried an == :
> if (a[i,1] == c[j,1]){
> results[k,1] <- a[i,1]
where a, c, and results are [3,3] matrices of string values.
If anyone could help me, it would be greatly appreciated. Thank you.
R
-
You could try something like this.
Simulating with a large number of grid cells is however very RAM expensive.
library(MASS)
library(spatial)
x <- expand.grid(1:30, 1:30)
distances <- as.matrix(dist(x, diag=T, upper=T))
Sigma <- expcov(r=distances, d=10, se=1)
z <- mvrnorm(n = 1, mu=rep(0,900
On Thu, 3 Jun 2004, Cristina Silva wrote:
> I have tried to estimate the confidence intervals for predicted values of a
> nonlinear model fitted with nls. The function predict gives the predicted
> values and the lower and upper limits of the prediction, when the class of
> the object is lm or glm
I'm trying to figure out how one might go about simulating a landscape
(matrix) in R. For example if one wanted to generate a simulated landscape
of precipitation values for some area (say a 100 X 100 matrix) they could
generate 10,000 numbers using a random normal distribution with a mean and
std
Hi,
exist in R or any other program for linux that estimate the best fit for data
using severals functions? Somethink like tablecurve
Thanks
Ronaldo
--
Um menino-prodigio e uma crianca cujos pais tem muita
imaginacao.
-- Jean Costeau
--
|> // | \\ [
Monica Palaseanu-Lovejoy wrote:
Hi,
I have a question for the group, perhaps someone can help me
figure this out. I've already looked in the help files and they were
no help to me.
I have a vector of values and I am plotting an ecdf graph.
1. How can i draw a continuous line through the ecd
On Thu, 03 Jun 2004 10:19:26 -0700, [EMAIL PROTECTED] wrote :
>Hi R-heplers,
>
>I would like to print various matrices, dataframes, tables, etc to
>files, preferably nicely formatted postscript for import into papers.
>Is there a way to do this?
>
>I know ?cat, ?writeLines, ?format, ?paste. But
The print method for xtable can send the output to a file.
-roger
Sundar Dorai-Raj wrote:
[EMAIL PROTECTED] wrote:
Hi R-heplers,
I would like to print various matrices, dataframes, tables, etc to
files, preferably nicely formatted postscript for import into papers.
Is there a way to do this?
I
Tony Plate wrote:
At Tuesday 03:44 AM 6/1/2004, Jari Oksanen wrote:
> [snip]
Anything can change in R without warning, and your code may
be broken anytime. Just be prepared.
>[snip]
One very helpful tool to deal with software updates is automated
testing. I highly recommend it. R comes with a t
I am trying to use R to do a weighted GAM with PA (presence/random) as the
response variable (Y, which is a 0 or a 1) and ASPECT (values go from
0-3340), DEM (from 1500-3300), HLI (from 0-5566), PLAN (from -3 to 3),
PROF (from -3 to 3), SLOPE (from 100-500) and TRI (from 0-51) as
predictor variable
Hi,
I have a question for the group, perhaps someone can help me
figure this out. I've already looked in the help files and they were
no help to me.
I have a vector of values and I am plotting an ecdf graph.
1. How can i draw a continuous line through the ecdf points? (lines
and type for
[EMAIL PROTECTED] wrote:
Hi R-heplers,
I would like to print various matrices, dataframes, tables, etc to
files, preferably nicely formatted postscript for import into papers. Is
there a way to do this?
I know ?cat, ?writeLines, ?format, ?paste. But I am not sure of a good
combination of thes
Hi R-heplers,
I would like to print various matrices, dataframes, tables, etc to
files, preferably nicely formatted postscript for import into papers.
Is there a way to do this?
I know ?cat, ?writeLines, ?format, ?paste. But I am not sure of a good
combination of these in order to get a nice l
Thanks to Eryk Wolski, Martin Maechler, Dimitris Rizopoulos and
Uwe Ligges: I uninstalled my apparently corrupted R 1.9.0pat and
installed R 1.9.1 alpha, and at least this simple example now works.
Best Wishes,
spencer graves
Uwe Ligges wrote:
Spencer Graves wrote:
The foll
Probably the simplest way to improve the speed of your code would be to
write the data so that all the data in a column is contiguous. Then you'll
be able to read each column with a single call to readBin().
hope this helps,
Tony Plate
At Tuesday 04:02 AM 6/1/2004, Uli Tuerk wrote:
Hi everybody
Dear all
I have tried to estimate the confidence intervals for predicted values of a
nonlinear model fitted with nls. The function predict gives the predicted
values and the lower and upper limits of the prediction, when the class of
the object is lm or glm. When the object is derived from nls, th
snow works well on an openMosix system, and is actually quite
convenient since you don't have to worry about which process is going
to which computer. The kernel migrates the processes automatically
(usually).
-roger
Paul Gilbert wrote:
Tony
Thanks, this categorization has cleared up a few thi
On Thu, 3 Jun 2004, Rajarshi Guha wrote:
> Hi,
> I have a matrix, m, over whose rows I want to apply a function. I also
> have a vector, r, whose length is equal to the rows of m.
>
> The obvious way is:
>
> result <- apply( m, c(1), fun )
>
> However the function call requires the row from m an
At Tuesday 03:44 AM 6/1/2004, Jari Oksanen wrote:
> [snip]
There are several other things that were fully documented and still were
removed. One of the latest cases was print.coefmat which was abruptly
made Defunct without warning or grace period: code written for 1.8*
didn't work in 1.9.0 and if c
Hi,
I have a matrix, m, over whose rows I want to apply a function. I also
have a vector, r, whose length is equal to the rows of m.
The obvious way is:
result <- apply( m, c(1), fun )
However the function call requires the row from m and the corresponding
element of r.
So, I want to pass m[i
Tony
Thanks, this categorization has cleared up a few things I have found
confusing. But should I read this to mean that SNOW would not run on
a system or kernel level parallel setup?
Thanks,
Paul Gilbert
A.J. Rossini wrote:
Also see SNOW (which simplifies parallel programming, sits on top of
Yes, of course paste() works; the question is about getting more
efficient query execution by preparing statements with placeholders in
advance (as opposed to paste()-ing together a new SQL statement for
every single statement execution, and requiring the database to
reinterpret/recompile it ev
Is it meaningful to use 'dropterm' (MASS) on a fitted coxph (survival) model
with a frailty term? Trying to do so gives results that do not look
meaningful (to me), so my guess is that the answer to my question is 'No'.
So, what is the recommended way of comparing nested mixed-effects models in
ge
Prepared statements are not yet in the "production" 4.0 release
of MySQL, only in the development or alpha version 4.1. I hope
to add prepared statements and data.frame bindings by the time
4.1 becomes the "production" release. The API for working with
prepared statements and bindings from R will
Hi!
?paste
works fine for me.
Sincerely
Eryk
*** REPLY SEPARATOR ***
On 6/3/2004 at 9:32 AM Sean Davis wrote:
>>>In perl DBI, there is a method for preparing sql commands with
>>>wildcards and
>>>then executing them with parameter bindings. Is there a way to do this
>>>with
Hi!
?paste
works fine for me.
Sincerely
Eryk
*** REPLY SEPARATOR ***
On 6/3/2004 at 9:04 AM Sean Davis wrote:
>>>Anja,
>>>
>>>Not meant as a plug, but heatmap.2 in the gregmisc package has the
>>>correct
>>>behavior and a few other options.
>>>
>>>Sean
>>>
>>>On 6/3/04 9:01 A
In perl DBI, there is a method for preparing sql commands with wildcards and
then executing them with parameter bindings. Is there a way to do this
within RMySQL? I would like to be able to look up values in a table based
on a key supplied from R.
Thanks,
Sean
__
Anja,
Not meant as a plug, but heatmap.2 in the gregmisc package has the correct
behavior and a few other options.
Sean
On 6/3/04 9:01 AM, "Martin Maechler" <[EMAIL PROTECTED]> wrote:
> {I'm vading through old "todo" e-mails...}
>
>> "Anja" == Anja von Heydebreck <[EMAIL PROTECTED]>
>>
{I'm vading through old "todo" e-mails...}
> "Anja" == Anja von Heydebreck <[EMAIL PROTECTED]>
> on Mon, 16 Feb 2004 11:41:13 +0100 writes:
Anja> The function heatmap() allows to specify row/column labels
Anja> via the options labRow/labCol. From the code of heatmap(),
Anj
The warnings are stored in a variable `last.warning' in the workspace.
warnings() simply prints this variable.
-roger
Marc Mamin wrote:
Hello,
I'd like to catch the warnings in a variable in order to evaluate them, but...
tt<-warnings()
Warning messages:
1: XML Parsing Error: test.xml:2: xmlPar
I am reading Dr. Carmonas book Statistical Analysis of Financial Data
using S-PLUS. Does anybody know where can I download the data used on the
book?. I have downloaded the files form Dr. Carmonas site but I cant
manage to extract the data out of them.
Thanks in advance
Ignacio Perez
On Thu, Jun 03, 2004 at 05:27:48PM +1000, Robert King wrote:
> Problem solved.
>
> This is a bad interaction of packages installed from debian with the R
> update.packages() system.
>
> Moral of the story is don't try to update.packges() for any of the
> packages installed as r-cran-package.name.
On Thu, Jun 03, 2004 at 04:58:16PM +1000, Robert King wrote:
> Hello All,
>
> I'm getting this error (Version: 1.9.0-1 on a debian system)
>
> > update.packages("mgcv")
[... snip ...]
Try
$ apt-get -t unstable install r-cran-mgcv
as mgcv is (obviously, given its 'recommend' status) one of the
Hello,
I'd like to catch the warnings in a variable in order to evaluate them, but...
> tt<-warnings()
Warning messages:
1: XML Parsing Error: test.xml:2: xmlParseStartTag: invalid element name
2: XML Parsing Error: test.xml:3: Extra content at the end of the document
> tt
NULL
is there a way t
Christophe Declercq wrote:
Bonjour, Nicolas
Bonjour,
par('usr') is read-only (see '?par')
This part of the manual is a bit unclear to me because 'mfrow' doesn't
seem to be read-only, unlike 'usr'...
That makes sense: user coordinates come from what you have plotted.
Ok, fine.
Would you show us an
Hi!
par(mfrow=c(2,1))
splits the plot in two parts for example.
For more information about graphics read introduction to R
provided with your R installation.
if par(mfrow ...
par(mfcol is not flexible enough for you
you can examine the documentation for
?layout
If you need even more flexibility
Hi,
> -Original Message-
> From: [EMAIL PROTECTED]
> Dear all,
> Is there a camera rotation for 3d graphics in R. I have seen it in a
> conference one time and thought it is pretty neat. the
> presenter was able
> to rotate the 3d graph with dragging the mouse up down left
> right. If not
Dear all,
Is there a camera rotation for 3d graphics in R. I have seen it in a
conference one time and thought it is pretty neat. the presenter was able
to rotate the 3d graph with dragging the mouse up down left right. If not
in R is there something that is open source that does this.
Thank you
Bonjour, Nicolas
par('usr') is read-only (see '?par')
That makes sense: user coordinates come from what you have plotted.
Would you show us an example of what exactly you want to do?
Christophe
--
Christophe Declercq, MD
Observatoire régional de la santé Nord-Pas-de-Calais
13, rue Faidherbe
F-5
Hi,
I'm trying to use the "usr" argument but I see no effect of this option
on my plots. For example:
> par(usr=c(0,4,0,4))
> plot(1,1)
This plots one point fine, but the coordinates of the plotting region
are not those that I specified using par()...
I can check this with
> par("usr")
[1] 0.568
Hi,
Thank you all for your helpful comments on the available R/S programming
books.
Kind regards,
Sam.
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/pos
> "MM" == Martin Maechler <[EMAIL PROTECTED]>
> on Thu, 3 Jun 2004 09:36:36 +0200 writes:
[things about a bug in installed.packages() ]
<.>
MM> It also seems to me that the value of lib.loc (namely
MM> "sfsmisc") at that moment is wrong as well - wh
Hi Robert,
> "Robert" == Robert King <[EMAIL PROTECTED]>
> on Thu, 3 Jun 2004 16:58:16 +1000 (EST) writes:
Robert> Hello All, I'm getting this error (Version: 1.9.0-1
Robert> on a debian system)
>> update.packages("mgcv")
Robert> trying URL
Robert> `ftp://mirror.a
Problem solved.
This is a bad interaction of packages installed from debian with the R
update.packages() system.
Moral of the story is don't try to update.packges() for any of the
packages installed as r-cran-package.name.here debian packages.
Robert.
On Thu, 3 Jun 2004, Robert King wrote:
> He
> "Fernando" == Fernando Pineda <[EMAIL PROTECTED]>
> on Wed, 2 Jun 2004 23:22:22 -0400 writes:
Fernando> I'm using .C() and .External() and have no
Fernando> problems sending integers, reals or strings from R
Fernando> to C. Nor do I have problems sending integers or
F
Hello All,
I'm getting this error (Version: 1.9.0-1 on a debian system)
> update.packages("mgcv")
trying URL `ftp://mirror.aarnet.edu.au/pub/cran/src/contrib/PACKAGES'
ftp data connection made, file length 169516 bytes
opened URL
.. .. .. .. ..
.. .
53 matches
Mail list logo