Hi David,
Thank you for your reply.
/Somehow I'm guessing that this will involve load an unnamed package.
Yep:
?create.fourier.descriptor
No documentation for ‘create.fourier.descriptor’ in specified packages
and libraries:
you could try ‘??create.fourier.descriptor’/
So I indeed forgot
Thanks for your email, in fact the problem was in the nested loop!! By
removing it and adding at the end
i = i + 1
I solved the problem, all the rest stays the same.
Best
--
View this message in context:
Hi All,
Here is the problem: I'm trying to generate a number of Fourier Descriptors
figures for an experiment.
All I need is that they are created within a loop and saved with sequential
names (e.g., s1_1.png, s1_2.png etc..) in my directory.
I created a nested loop with a counter for the
Thank you all for your helpful comments!
I solved my problem by creating an empty matrix before the loop and
adjusting the loop itself, this is the code:
size - dim(input)
out - matrix('',nrow =size[1], ncol = 9)
for (i in 1:nrow(input)) {
out[i,1:3] -
Dear All,
I hope you don't mind helping me with this small issue. I haven't been using
R in years and I'm trying to fill in a matrix
with the output of a function (I'm probably using the Matlab logic here and
it's not working).
Here is my code:
for (i in 1:length(input)){
out[i,1:3] -
probelm solved:
data - read.table(pdvspt.txt, header = T, dec = ,)
It was the coma, now I have everything in numeric.
Thanks a lot for the support!
Ale
--
View this message in context:
http://r.789695.n4.nabble.com/as-integer-tp2245987p2246989.html
Sent from the R help mailing list archive
Hi,
thanks for your reply.
I attached the example.
I tried your suggestion:
data[is.factor(data)] - lapply(data[is.factor(data)], function(x)
as.numeric(as.character(x)))
But I still have the var as factors.
I'm thinking now, in the txt file the decimals numbers are separated with a
coma.
Hi,
Is there a way to recursively change the variables imported with
read.table(..) - and then attached with attach(..) - from as.factor to
as.integer?
I have about 9 variables that are now recognized as factors but I need to do
statistics on them so I need to change them in as.integer. It
Hallo,
I have to fit my distribution with Beta-prime. I found the parameters now I
need to plot the Cumulative probability and the Probability density of my
fitted data.
With gamma for exemple is easy:
PDF:
plot(x,dgamma(x, shape,rate))
Cumulative probability:
plot(x,pgamma(x, shape,rate))
Hallo,
I received this error message while calculating the coefficents
coef(fit, matrix=TRUE)
Error in object$coefficients : $ operator not defined for this S4 class
what is this? How can I solve it?
Ale
--
View this message in context:
Hallo,
I have an other problem, I have this vector signData with an alternation of
1 and -1 that corrispond to the duration of two different percepts. I
extracted the durations like this:
signData- scan(dataTR10.txt)
dur-rle(signData)$length
Now I would like to extract only the positive
Hallo,
How can I have the control of the width of each bin in the histogram?
I would like to plot my data modifying the number and the width of the bins.
Is there a good pdf or manual where i can learn to use the plot/hist in R
very well?
I find the help not always clear
Thanks a lot
Ale
--
Hallo,
I need your help.
I fitted my distribution of data with beta-prime, I need now to plot the
Cumulative distribution. For other distribution like Gamma is easy:
x - seq (0, 100, 0.5)
plot(x,pgamma(x, shape, scale), type= l, col=red)
but what about beta-prime? In R it exists only pbeta
Hallo,
I have a vector of several iterations and I have to remove /filter out all
the values than 10,
how can I do this?
Thanks a lot
Alessandra
--
View this message in context:
http://www.nabble.com/removing-value-from-a-vector-tp24250608p24250608.html
Sent from the R help mailing list
Hi,
I need to fit my data with beta-prim distribution. I found the function in
the package VGAM: betaprime and betaff. I don't know how can I make it work.
I know that i need to calculate the parameters that describe this function
on my distribution. But for exemple I don't understand the link
Dear Helpers,
I need to fit a gamma function on a distribution. I want to use the Method
of the Least Squares for minimizing the sum of squared residuals (SSE). I
don't know how to do this. I guess I need to calculate the best fit
parameter values and then somehow comparing my empirical
Hi,
I need your help.
I have a vector of numbers reflecting the switch in the perception of a
figure. For a certain period I have positive numbers (which reflect the
perception A) then the perception changes and I have negative numbers
(perception B), and so on for 4 iterations. I need to
SOLVED:
I imported again the data like this:
data - scan (data.txt)
Thanks Phil Spector!
Alessandra
aledanda wrote:
Hi,
I need your help!!
I imported a big coloumn vector from a txt file but it results as mode
:list I want to change it in numeric otherwise I can't do my analysis
Hi,
I need your help!!
I imported a big coloumn vector from a txt file but it results as mode
:list I want to change it in numeric otherwise I can't do my analysis.
This is what i get:
mode (data) - double
Error in eval(expr, envir, enclos) :
(list) object cannot be coerced to type 'double'
19 matches
Mail list logo