Re: [R] Insert elements into a vector in a defined positions

2009-11-26 Thread Manuel Ramon
That's good . Your solution works for me. Than you Rolf. Rolf Turner-3 wrote: On 26/11/2009, at 10:46 AM, Manuel Ramon wrote: Dear R users, I have a vector of length n and I want to insert some elements (in my case the NA string) into a defined positions. For example, my vector

[R] Insert elements into a vector in a defined positions

2009-11-25 Thread Manuel Ramon
Dear R users, I have a vector of length n and I want to insert some elements (in my case the NA string) into a defined positions. For example, my vector is z1 and I want to add NA's in positions 4, 6 y 7 so after that, my new vector, z2, should have a length of 10+3. z1 - 1:10 id - c(4,6,7)

Re: [R] How to deal with this random variable?

2009-07-28 Thread Manuel Ramon
...@r-project.org] On Behalf Of Manuel Ramon Sent: Monday, July 27, 2009 9:54 AM To: r-help@r-project.org Subject: [R] How to deal with this random variable? Hello to everybody, I have a data frame with 100 measures of quality for 3 variables: A, B and C. These quality variables are measured

[R] How to deal with this random variable?

2009-07-27 Thread Manuel Ramon
Hello to everybody, I have a data frame with 100 measures of quality for 3 variables: A, B and C. These quality variables are measured in diferent times along the productive process. My data comes from 5 experiments (5 replicates with 20 measures for replicate). I also have a final measure (Z)

[R] Principal components vs. raw variables

2009-04-01 Thread Manuel Ramon
Hello to everyone, I am starting to work on classification procedures. I usualy do a principal component analysis (PCA) as a previous step in order to reduce variables and after I apply a cluster procedure. My question is if it will be better to use raw variables instead of use principal

[R] Re siduals from a linear model

2008-11-18 Thread Manuel Ramon
I'm working with a linear model with four factors as explicatory variables, being all of them significally (e.g. y ~ a + b + c + d). I thought that the residuals of a linear model keep the variance not explained by the model, so if I use my model with just three factors (y ~ a + b + c) and keep

[R] Anyone can help me with a model I have looking for?

2008-09-16 Thread Manuel Ramon
Hello to everyone. I don't know if that forum is the rigth place to post my question but I would be greatful for your help. My problem is as follow: I have a performance trait as a dependent variable and measures of temperature in different days as a covariate. I assume that there is an

[R] how to calculate the mode of a continuous variable

2008-08-29 Thread Manuel Ramon
Is there any R funtion that allow the estimation of mode in a continuous variable? Thank you -- View this message in context: http://www.nabble.com/how-to-calculate-the-mode-of-a-continuous-variable-tp19214243p19214243.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] how to calculate the mode of a continuous variable

2008-08-29 Thread Manuel Ramon
)) lines(s$x,s$y,col=red) points(s$x[ix],s$y[ix],col=blue) md - s$x[which(s$y==max(s$y))] md } Thanks for your help, Manuel Ramon Peter Dalgaard wrote: Henrique Dallazuanna wrote: Try: as.numeric(names(which.max(table(x On Fri, Aug 29, 2008 at 3:13 AM, Manuel

Re: [R] Is there a model like that in R?

2007-10-01 Thread Manuel Ramon
. -Original Message- From: Gustaf Rydevik [mailto:[EMAIL PROTECTED] Sent: Friday, September 28, 2007 11:13 AM To: Manuel Ramon Cc: r-help@r-project.org Subject: Re: [R] Is there a model like that in R? On 9/28/07, Manuel Ramon [EMAIL PROTECTED] wrote: Hi to everyone, I