Hi Gabor, Christian, R users!
I asked several days ago how to provide a signature in S4 for an existing function of
the type which gabor proposes.
There are already some functions in the base package which are using the syntax
sugested by you.
e.g:
rbind -
function (..., deparse.level = 1)
Hallo!
There is a package called BioSeq1 at bioconductor. It Is using the .C interface and
was doing a lot of string manipulation. Should have tons of examples.
The simplest way to do it is.
You my alloc fist the char in R.
mychar-paste(rep( ,1000),collapse=)
tmp-.C(
as.character(mychar)
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
Fernando reals
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:
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
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 - which would
MM
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!
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 1.432
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
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
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
in R
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
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
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 to
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 CRAN
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.here
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
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:
{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(),
Anja I understand
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]
on Mon, 16 Feb
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
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 AM, Martin Maechler [EMAIL
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
within RMySQL?
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 be
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
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
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
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
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
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 and the
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
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,
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
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
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
[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
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
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
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
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
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 I am
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
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
--
| // | \\
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
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.
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),
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
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 Ligges
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
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) {
lastWarning - warn
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,
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
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
Subject:
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,
54 matches
Mail list logo