> I am trying to find the analytical solution to this differential equation
>
> dR/dt = k1*(R^k2)*(1-(R/Rmax)); R(0) = Ro
> If there is an analytial solution to this differential equation then it
It is a polynomial function of R, so just develop the expression and
when you get the two terms in R
> Which format is better? pdf, jpeg or tiff?
png and jpeg are bitmap formats, and you can trigger the resolution
playing with options width, height (in pixels) and res (nominal DPI)
till you find what is suitable for your purpose. Png is definitely the
way to go for graphs.
Pdf is the overall best
Hi,
> I recently have started using R again on a Linux box after spending several
> years on a Mac. Last I checked, the best way to use R was through EMACS
> using something like ESS. I remember that being serviceable but not always
> the most convenient.
> Is there anything comparable to the mac
Is Rscript what you want?
http://stat.ethz.ch/R-manual/R-patched/library/utils/html/Rscript.html
>From the docs I can't see if it allows interactivity (also through
tcl/tk). Still, give a look.
ScionForbai
__
R-help@r-project.org mailing li
Have a look at RKWard (http://rkward.sourceforge.net/), for kde. I
don't know though if Ubuntu has it in its repos.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.or
he correct Latex math strings (like $\sigma^2$).
Hope this helps,
scionforbai
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
tors or to a 6x3 dataframe.
solution 1:
myData <- cbind(td,contractdate,price)
> library(rgl)
plot3d(mydata)
solution 2:
td <- as.numeric(td)
...
price <- as.numeric(price)
plot3d(td,contractdate,price)
Bye,
ScionForbai
__
R-help@r-pr
> My question: is there a way to add axes the usual way (as tried for the
> first graphic), but to erase the margin, so that the axes start at point
> (0/0) in my case.
Not really sure if this is what you ask, but maybe you should call
your first plot() with xaxs="i" and yaxs="i". It reduces the d
Hi Czqiu,
short answer:
?expression
?eval
?quote
?parse
?deparse
?substitute
Bye,
Scionforbai
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
community. It is the best way to get things working and
avoid problems.
> Should I install another flavour of Linux ?
It depends. Ubuntu is good to start, and has the widest users base;
Archlinux my best choice (but you need to be already somewhat
advanced).
ScionForbai
___
, and you calculate the
mean of the points of the two matrixes.
This is the simplest (and quickest) moving average that you can do.
For more complicated examples, and for 3d, you have to go a little
further, but the principle holds.
ScionForbai
__
R-help@
> - krigging in package fields, which also requires irregular spaced data
That kriging requires irregularly spaced data sounds new to me ;) It
cannot be, you misread something (I feel free to say that even if I
never used that package).
It can be tricky doing kriging, though, if you're not comfort
I found this link:
http://jesus-loves-grass.blogspot.com/search/label/R%20server
Which points to RSOAP and Rserver.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.
help.start(), then "Writing R extensions".
You can link fortran subroutines to R by compiling them in a shared
library (.so or .dll depending on your system) by the command:
R CMD SHLIB file1.f file2.f -o myfortransubroutines.so
and then from R you first
dyn.load("myfortransubroutines.so")
and
Hi Denver,
> I want to calculate the return say AMR,so I use
If data is a matrix or a data.frame you need to use the correct
index: [row,col] instead of [row]. Try:
re=numeric(10)
for (i in 2:nrow(data)) {
re[1]=0
re[i]=log(data[i,1]/data[i-1,1])
}
This works, but of course you have
Do you need something more than a simple ssh connection to a remote
host in which you run R (trivial when the server is Linux)?
My advice is to run R in a "screen" session on the remote host (it
protects from sudden disconnections). Then you have a window on your
screen with the R command line, wh
If what you want is a lognormal distribution of n values you can use
the following transformations:
lognorm1 <- M*exp((rnorm(n)*sigma)-sigma^2/2.)
which gives a lognormal distribution such that:
mean(lognorm1)=M ;
var(lognorm1)=M^2*(exp(sigma^2)-1);
Changing the sigma (standard deviation) you alw
like maps).
ScionForbai
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
plot(x1,y1,"b",xlim=range(x1), ylim=c(0, 170),pch=16,cex=2,axes=FALSE,ann=FALSE)
par(col="grey50", fg="grey50", col.axis="grey50")
axis(1, at=seq(0, 16, 4))
axis(2, at=seq(0, 170, 10))
axis(4, at=seq(0, 170, 10))
par(new=TRUE)
plot(x2,y2,"b",xlim=range(x2), ylim=c(0, 170),pch=21,cex=2,axes=FALSE,an
> Any suggestions?
When generating a bitmap (png is then the best solution) you can
control the resolution with "width" and "height" parameters (in
pixels):
png("myimage.png",width=1800,height=1800)
Then you just need to raster yor graph in an adequate resolution (more
pixels means bigger file,
> It would be dumb to ignore the fact that Excel is a very widespread
> program, and therefore in the real world we are very likely to
> encounter data formatted by Excel.
Of course I know the widespreading of such programs. But the point is:
how can we start to change this in the real world? Peop
I just wonder: why should R and its community try to support such an
awful program, with its protected formats and unmantained
features/bugs?
I mean, from both philosophical and technical point of view: R is free
software and should rather try to be 'viral' than to compete. It
already has the stren
> Such workarounds should normally be avoided.
You forgot to mention: Excel should normally be avoided.
Risk of scrambling data while exporting to a simple ascii formatted text file?
Is it a joke?
__
R-help@r-project.org mailing list
https://stat.ethz.
I would start R with the command:
http_proxy="http://SERVER:3128"; R
and then from R I would try:
install.packages("Rcmdr", dep = TRUE, method = "wget")
provided that you have wget installed on your system (which I think).
__
R-help@r-project.org mai
>>> is it only me or has anyone else the problem that running an R
>>> process within emacs is way much slower than in a regular terminal/
>>> console?
>> It's just you, and if you think some more about it, you'll see
>> why we are all grinning. [ Hint: it can't be slower, outside of
>> ridiculou
> kate infact allows you to pipe commands to console (tools->pipe to
> console). I have pretty much the same setup as you. But I have defined
> a shortcut for piping the commands to console in kate. So I just
> have to highlight commands using shift and arrow keys, and press F4
> (my shortcut) and
Hi,
> What features are you missing in emacs that you wish were there? Are
> these ESS features or LaTeX related features?
is it only me or has anyone else the problem that running an R process
within emacs is way much slower than in a regular terminal/console?
(linux here)
r), but it works great.
ScionForbai
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
d it has a
certain degree of continuity.
I very often have to produce 512x512 images, and it doesn't seem to be
any particularly intensive procedure; I mean, it is done within
seconds.
ScionForbai
__
R-help@r-project.org mailing list
https://stat.ethz.ch/
In pure R (without other packages) is IMHO simpler to understand (at
least if data are so simple: months 1 till 9 with no missing
values...). All you need is:
dummybob <- ' month A B
Jan 8 4
Feb 7 5
Mar 6 8
Apr 3 7
May 5 1
Jun 6 4
Jul 2 8
Aug 1 2
Sep 4 3
'
bob <- read.t
n is:
platform i686-redhat-linux-gnu
version.string R version 2.4.1 (2006-12-18)
locale is: LANG=it_IT.UTF-8
What is this multibyte string? Does it depend on LOCALE settings?
Where can I find further docs on this way to pass character
descriptors?
Thanks,
ScionForbai
_
Try:
plot(0,0,"n")
text(0,0,expression( {NO[3]}^'-'))
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self
plot(0,0,"n")
mtext( expression( bar(x) == 3.07) )
but you can also simply 'paste' things:
text(0,0,labels=expression(paste(bar(omega), " = 1")),srt=90)
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read th
> My question is what is the best OS on PC (laptop) for statistical
> computing and why.
A free/open source *nix operating system is the best you can have
todate, for almost everything, noticeably stability, security,
scalability, networking and development, given that your hardware is
supported a
34 matches
Mail list logo