Yes, missing * is the problem. Thank you a lot. Do you mean I need to
incorporate all expression of Rg0sq, Rg etc. into the final Pfit function?
Qiuyang
Date: Sat, 11 Aug 2012 21:18:03 -0700
From: ml-node+s789695n4640077...@n4.nabble.com
To: stephen...@hotmail.com
Subject: Re: What's wrong
stephenxqy wrote
Yes, missing * is the problem. Thank you a lot. Do you mean I need to
incorporate all expression of Rg0sq, Rg etc. into the final Pfit function?
Not necessarily. For example in function Pexv you evaluate Rg(L,b) 5 times.
You can also do this evaluating Rg(L,b) once and the
Thanks!
Date: Sun, 12 Aug 2012 07:42:12 -0700
From: ml-node+s789695n4640093...@n4.nabble.com
To: stephen...@hotmail.com
Subject: RE: What's wrong with my code?
stephenxqy wrote
Yes, missing * is the problem. Thank you a lot. Do you mean I need to
incorporate all expression of Rg0sq,
stephenxqy wrote
It is a complex function, functions are quoted frequently, you may read
from bottom up
The independent variable for final fit is q
%%Rg0 is a function of L and b
Rg0sq-function(L,b)L*b/6*(1-3/2*b/L+3/2*(b/L)^2-3/4*(b/L)^3*(1-exp(-2*L/b)))
%%alpha is a defined function
I've written out codes for one particular file, and now I want to generate
the same kind of graphs and files for the rest of similar data files.
When I plugged in these codes, R produced only one plot for the file
eight, and it states my error(see below) I have edited and checked my
codes so many
Hi Susie,
At a guess, there are no non-missing arguments to min or max.
But no, we can't help you. You haven't provided a minimal reproducible
example, and without knowing anything about your data it is impossible
for the list to offer any constructive suggestions.
The posting guide offers
I've written out codes for one particular file, and now I want to generate
the same kind of graphs and files for the rest of similar data files.
For example, a file 8.csv would look like such:
enc_callee inout o_duration type
A out 342 de
B in 234 de
C
Dear Susie,
See inline for some suggestions, but generally, I think you would
benefit from breaking this down into smaller pieces. The error you
are getting indicates the problem has to do with the plotting, but
that will be trickier to isolate while also dealing with reading in
data, looping,
Hey Josh,
Thank you so much for the help!
Now I have edited my codes--breaking into smaller pieces:) R does not state
the error again:)
However, the problem comes, please see my codes below-- You've suggested
earlier that I should move the eight part outside the loop; I changed the
eight
Take a closer look at your R code. Each loop is returning only the
last value, so you're doing the same thing over and over for the last
value from the previous loop.
Write just the code for *one* set of graphs. Look at what needs to
change to do the next set. Write a function that takes those
Dear Susie,
I'm glad the pieces are working. Sorry if I wasn't clear before, when I said
break down into smaller pieces, I meant for testing and figuring out what's
wrong. If you have everything in separate loops, they will be completed
individually, so reading all the datasets will be done
11 matches
Mail list logo