Dear Ivan and Rui - thanks a lot for the effective help.
All best wishes Troels
Den 03-07-2024 kl. 10:25 skrev Ivan Krylov:
В Wed, 3 Jul 2024 10:13:59 +0200
Troels Ring пишет:
Now e looks right - but I have been unable to find out how to get the
string e converted to the proper argument for
В Wed, 3 Jul 2024 10:13:59 +0200
Troels Ring пишет:
> Now e looks right - but I have been unable to find out how to get the
> string e converted to the proper argument for sum() - i.e. what is
> function xx?
get(e) will return the value of the variable with the name stored in
the variable e.
Às 09:13 de 03/07/2024, Troels Ring escreveu:
Hi friends - I'm in problems finding out how to unquote - I have a
series of vectors named adds1adds11 and need to e.g. find the sum of
each of them
So I try
SS <- c()
for (i in 1:11) {
e <- paste("adds",i,sep="")
SS[i] <- sum(xx(e)) }
N
Hi friends - I'm in problems finding out how to unquote - I have a
series of vectors named adds1adds11 and need to e.g. find the sum of
each of them
So I try
SS <- c()
for (i in 1:11) {
e <- paste("adds",i,sep="")
SS[i] <- sum(xx(e)) }
Now e looks right - but I have been unable to fi
On 04/12/2012 09:11 PM, David Winsemius wrote:
On Apr 12, 2012, at 3:49 PM, Aye wrote:
Okay, i got this far:
f <- function(x) 0.25*x^2 + 6.47*x -32.6
g <- function(x) 0.99*x^2 -6*x -195
h <- function(x) 0.77*x^2 +14*x -495
j <- function(x) 0.001*x^2 + 65*x -785
k <- function(x) 0.9*x^2 -2*x -6
On Apr 12, 2012, at 3:49 PM, Aye wrote:
Okay, i got this far:
f <- function(x) 0.25*x^2 + 6.47*x -32.6
g <- function(x) 0.99*x^2 -6*x -195
h <- function(x) 0.77*x^2 +14*x -495
j <- function(x) 0.001*x^2 + 65*x -785
k <- function(x) 0.9*x^2 -2*x -63
Okay, i got this far:
f <- function(x) 0.25*x^2 + 6.47*x -32.6
g <- function(x) 0.99*x^2 -6*x -195
h <- function(x) 0.77*x^2 +14*x -495
j <- function(x) 0.001*x^2 + 65*x -785
k <- function(x) 0.9*x^2 -2*x -636
plot(x, f(x), xlab="Elemente in der R
Hi,
you can use the curve() function for this. It is dedicated to plotting
functions.
Here is an example
# turn your functions into r functions
f <- function(x) 0.25 * x^2 + 6.47 * x -32.6
g <- function(x) 0.99*x^2 -6*x -195
j <- function(x) 0.77*x^2 + 14*x -495
k <- functi
It seems that your first problem is syntax:
2x
will thrown an error, while
2*x
won't.
Google around for a good intro tutorial (there's the main one you can
access by typing help.start() and it's quite good) and these sorts of
things will be explained.
You might also want to use the curve func
Hi,
At the moment I am studying R at school.
But I found this site very useful to explain the plot functions to me:
http://www.harding.edu/fmccown/r/
Maybe that can help you too?
--
View this message in context:
http://r.789695.n4.nabble.com/Simple-Problem-Plotting-mathematical-functions
Hey there,
I want to plot 5 parabola functions, which happen to be
f(x) = 0.25x² + 6,47x -32.6
g(x)=0.99x² -6x -195
j(x)= 0.77x² +14x -495
k(x)=0.001x² + 65x -785
l(x) = 0.9x² -2x -636
in the same graph. Sadly I even do not really understand how to plot just
one graph
On 31/12/2011 10:27, Ronaldo Reis Júnior wrote:
Hi,
when I use the install.packages() function this make a download of
packages, try do compile/install packages and delete the downloaded
file. But if the compilation of package fail, I need to make the
download again because R delete all download
Hi,
when I use the install.packages() function this make a download of
packages, try do compile/install packages and delete the downloaded
file. But if the compilation of package fail, I need to make the
download again because R delete all downloaded file. How I can make
install.packages dont
Hi all,
I've got an xts time series with monthly OHLC Dow Jones industrial index
data from 1980 to present, the data is in stored in x.
I've done an OLS fit on the data in 1982::1994 and stored it in extrapolate1
(x[,4] contains the closing value for the index).
> t3 <- seq(1980,1994,length = le
I never knew to enter that command in.
Thanks guys!
--
View this message in context:
http://www.nabble.com/Simple-problem-in-R-tp16259116p16260713.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
http
On Mon, 24 Mar 2008, Chaser wrote:
>
> I found a package on www.bioconductor.com that allows me to install using
> this line:
>
> source("http://bioconductor.org/biocLite.R";)
> biocLite("MassSpecWavelet")
>
> The prompt showed me the following message:
>
> Running biocinstall version 2.1.10 with
library(MassSpecWavelet)
On 24/03/2008, Chaser <[EMAIL PROTECTED]> wrote:
>
> I found a package on www.bioconductor.com that allows me to install using
> this line:
>
> source("http://bioconductor.org/biocLite.R";)
> biocLite("MassSpecWavelet")
>
> The prompt showed me the following message:
I found a package on www.bioconductor.com that allows me to install using
this line:
source("http://bioconductor.org/biocLite.R";)
biocLite("MassSpecWavelet")
The prompt showed me the following message:
Running biocinstall version 2.1.10 with R version 2.6.2
Your version of R requires version
18 matches
Mail list logo