You really need to read the help page for uniroot. The sign needs to be
different at the ends of the starting interval. This is a typical limitation of
numerical root finders.
---
Jeff NewmillerThe
Hi all,
In the following code, I am trying to use uniroot function to solve for
the root (a and b in code below) for function f1.
I am not sure why uniroot function does not give the answer since when we
look the graph, the function does cross 0 twice.
Any suggestion?
Thanks.
Hanna
u1
Dear All,
I'm creating a project which uses both java and R.
I created the java class named MyClass and within that wrote two
separate methods (graphing1() and fitness()) to call the r scripts.
public void graphing1() throws IOException {
String newargs1[] = {"--no-save"};
Rengine r1 =
Hi,First : thanks for your answerThis is my first post on the R-help forum and
I'm not familiar with the way how to should post. I am not searching for "an
example from scratch" as you said, I am able to build my own codes so I'm only
looking for tips : packages, functions that can help my issu
Thanks.
Actually, I thought there was a way to do it with scan only ...
2015-04-15 16:40 GMT+02:00 William Dunlap :
> > strsplit(x=sub(pattern="^\\* ", replacement="", x=test), split=" ")
> [[1]]
> [1] "a" "b" "d"
>
> [[2]]
> [1] "z" "u" "i" "h" "hh"
>
> [[3]]
> [1] "h" "bh" "kk"
>
>
> Bill
I also suggest you take this question to R-Sig-geo.
Since spplot() is built on the lattice package, adding new elements to an
existing plot is, in my experience, difficult to learn how to do. If you
can possibly start with plot() instead of spplot() you will, I think, find
it much easier to add co
I think we need basic code and sample data to see what you are doing.
Have a look at http://adv-r.had.co.nz/Reproducibility.html and/or
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
for some hints. For this last link it is a good idea to follow the "
rep
I think you did not read my answer very carefully... there is a better mailing
list for your question. The rest of my comments were intended to educate you,
not chastise you. Mailing lists require careful communication, and you do need
to improve on your end or you will have "bad luck" getting h
Well, creating an example from scratch to show you how it is done can be a lot
of work, and depending on your specific data such code can end up being wasted
work. For this reason the polite thing to do is to provide a minimal
reproducible example that list readers can use to start from. [1]
Al
> strsplit(x=sub(pattern="^\\* ", replacement="", x=test), split=" ")
[[1]]
[1] "a" "b" "d"
[[2]]
[1] "z" "u" "i" "h" "hh"
[[3]]
[1] "h" "bh" "kk"
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Apr 14, 2015 at 2:34 PM, Hermann Norpois wrote:
> Hello,
>
> I try to open a text file
On 15 Apr 2015, at 13:11 , Anniek wrote:
> I know that exp(coef) is the Hazard Ratio, but in a certain output posted
> down here also a exp(-coef) is present.
>
> exp(coef) exp(-coef) lower .95 upper .95
> ns(CD4, 4)1 0.29058 3.4413 0.1440750.5861
> ns(CD4, 4)2
Dear all,
My name is Bilel and I'am a PhD student from Tunisia working on climate
modelling. My issue today is how to add a Bravais Pearson test as a contour
plot to an existing spplot map. Precisely, I have plotted a
SpatialPixelsDataFrame of Pearson correlation coefficients between simulated
I know that exp(coef) is the Hazard Ratio, but in a certain output posted
down here also a exp(-coef) is present.
exp(coef) exp(-coef) lower .95 upper .95
ns(CD4, 4)1 0.29058 3.4413 0.1440750.5861
ns(CD4, 4)2 0.0987010.1316 0.0290750.3351
ns(CD4, 4)3
John Kane
Kingston ON Canada
> -Original Message-
> From: miao...@gmail.com
> Sent: Wed, 15 Apr 2015 11:54:13 +0800
> To: r-help@r-project.org
> Subject: [R] Make a Excel chart by R code
>
> Hi,
>
>I understand that there're many great graphic packages in R (e.g.,
> ggplot2) . Nev
Hello Michael,
thank you for the reply, it realy helped me to simplify my script.
Basically all my questions are a bit the same, but with your hint I could
solve most of my problems.
Met vriendelijke groeten - With kind regards,
Joachim Audenaert
onderzoeker gewasbescherming - crop protectio
Thank you very much for the reply Thierry,
It was very useful for me, currently I updated my script as follows, to be
able to use the same script for different datasets:
adapting my dataset : y <- melt(dataset, na.rm=TRUE) where "na.rm = true"
ommits missing data points
variable <- y[,1]
valu
By this, do you mean you want to use R to send data to Excel and have
Excel create the graph without your intervention, or to use R to create
a graph that looks like one of those that Excel produces?
David
On 4/14/2015 9:54 PM, jpm miao wrote:
Hi,
I understand that there're many great gr
Hi,
I produced a mc plot with this package, but the plot is cluttered in
the middle. Is there a way to expand the plot so its parts are more
clear?
Simon
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/
Dear Joachim,
Storing your data in a long format will make this a lot easier.
library(reshape2)
long.data <- melt(dataset, measure.var = c("A", "B", "C", "D", "E"))
library(car)
leveneTest(value ~ variable, data = long.data)
library(plyr)
ddply(long.data, "variable", function(x){ks.test(x$value}
Hi Hermann,
This isn't much more elegant, but
test.list<-sapply(test,function(x) { strsplit(x," ") },simplify=TRUE)
names(test.list)<-NULL
Jim
On 4/15/15, Hermann Norpois wrote:
> Hello,
>
> I try to open a text file test.txt with the content
>
> * a b d
> * z u i h hh
> * h bh kk
>
> so that
Hi Dot,
Jeff's guess is probably correct, but perhaps you could describe the
crazy tick marks and the repeating labels a little more. I suspect
that if "newdate" was a character variable you wouldn't get a plot at
all, and if it is a factor, a few of the labels might identify what
went wrong.
Jim
21 matches
Mail list logo