search for: xcut

Displaying 6 results from an estimated 6 matches for "xcut".

Did you mean: cut
2004 Nov 12
4
How to get mode (the most frequent value in distribution)?
Hello! I have a continous distribution and would like to get mode (the most frequent value in distribution). I easily found mean, median and other basic thing but not mode function. Can anyone help? I know there my might be problems with multiple modes, but still I think that there should be a mode function in R. Please send mail to R-help list and me, so I can get response faster. Thank
2003 May 16
2
Efficient subsetting
Hi, I'm facing this problem quite a lot, so it seems worthwhile to check to see what the most efficient solution is. I've two vectors x (values ordered) and y. I've ranges x < x0, x0 <= x < x1, x1 <= x < x2, x2 <= x < x3, x > xn and want to construct a subvector yprime of y which consists of the first/last value of y whose x values are in the range. For
2006 Sep 15
0
R: Grouping columns in a data frame based on the values of a column
Perhaps using 'ave' and 'cut': df <- data.frame(x=runif(100, 0.1, 1), y=rnorm(100, 0.2, 0.6)) df$xcut<-cut(df$x, seq(0, 1, 0.1)) df$z<-ave(df$y, df$xcut) df[order(df$x),] Stefano -----Messaggio originale----- Da: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]Per conto di e.rapsomaniki at mail.cryst.bbk.ac.uk Inviato: venerd? 15 settembre 2006 17.45 A: r-...
2007 May 16
1
how to reduce in a grid ?
hi dear R users, I'm a newbie with R and excuse me if my question is stupid ... but i've read lot of documentation and I don't know how to do. I have a dataset like x y var1 var2 2 4 10 50 3 3 20 70 3 2 50 68 4 5 34 42 5 3 10 23 7 8 23 42 7 3 23 34 [...] And I need to produce grids like : y\x ]0-2] ]2-4]
2004 Mar 11
5
recoding variables
Hi, I was hoping someone could help me. I am a graduate student new to using R, and I'm trying to figure out how to recode a continuous variable to make it into an ordinal variable with 3 categories. I literally have no idea how to proceed--could anyone possibly advise me? Please copy me on any responses, as I have just subscribed to the R-help email list but don't know whether the
2013 Jun 04
4
función recode
Buenos días No sé qué es lo que estoy haciendo mal al aplicar la función recode. Escribo: personas_LR2 <-recode(personas_LR$edad, '0:15="Menores de 16 años"; 16:44="Entre 16 y 44 años"; 45:64="Entre 45 y 64 años";>=65"65 y más años";', as.factor.result=TRUE) y me da el siguiente error: Error en parse(text = strsplit(term,