[R] remove accents in strings

2010-09-07 Thread lamack lamack
Dear all, there is a R function to remove all accents in strings? best regards. JL [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

[R] link between dynamic web pages and R

2009-02-20 Thread lamack lamack
Dear all, I would like to hear about the best way between an dynamic web page an R. (rpad, rapache, rphp son on ???). I am producing dynamic web pages with PHP and need some data analysis in these pages. Best regards. JL _ [[e

[R] RApache

2008-10-08 Thread lamack lamack
Dear all, I have a question about RApache. Is it possible install it under XAMPP server? I would like of some directions. Is it needed install the R before? Best regards. _ Confira vídeos com notícias do NY Times, gols direto

[R] enumerate subsets

2008-07-20 Thread lamack lamack
Dear all, is there a R function that enumerate a partition of a vector of size n? (of course for n not very large). I would like enumerate all the (2 power n)-1 sub-sets. (2 power n)-1 since (2 power n) includes de empty subset. Best Regards. ps. It is not a homework. I never posted homework i

[R] Stratified random sample

2008-07-16 Thread lamack lamack
Dear all, I have two vector: strata response1 11 21 32 12 22 3. .. .. .10 110 210 3. .. .. .100 1100 2100 3 I need to get a stratified random sample of size = 100, such that: if I select response = 1 in strata 1 then I need sample 2 or 3 in strata 2 if I select respons

[R] off topic

2008-05-15 Thread lamack lamack
Dear all, someone could explain why the following example is not a valid randomization scheme? Consider an experiment in which the six experimental units to be used are permanently fixed in a row and two treat- ments are to be randomly assigned to the units. (One can think of fruit trees or a s

[R] java applets

2008-04-07 Thread lamack lamack
Dear all, is it possible to implement some statistics data analysis based on R and javascript? I would like to construct java applets using R functions. Is it possible? Where can I find examples? Best regards. LL _ [[a

[R] colours bars in barplot

2008-03-26 Thread lamack lamack
Dear all, I have two matrices: matrix 1: height 23121 2125 25 25 2121 0 21 216767 33 22725 0 1 92 190 7171 192 067 0 00 8671 0 067 0 00 0 0 0 0 67 0

[R] FW: Os resultados do seus comandos de email

2008-03-13 Thread lamack lamack
Dear all, what is the best way to do this? end = c(2,6,4) I neeed: expand.grid(0:end[1],0:end[2],0:end[3]) Best regards JL _ Confira vídeos com notícias do NY Times, gols direto do Lance, videocas[[elided Hotmail spam]] _

[R] working with weekdays

2008-02-18 Thread lamack lamack
Dear all, is it possible create, automatically, a variable with all the Monday and Thursday? 18/02/2008 21/02/2008 25/02/2008 28/02/2008 03/03/2008 . . for all months Best regards JL _ Confira vídeos com notícias do NY Times, gols

[R] missing values: a question

2007-11-23 Thread lamack lamack
Dear all, Is there a best way to do the following task? x = rep(c("A","B"),5)y = rnorm(10)data = data.frame(x,y)data$y[1:2] = c(NA,NA)means = ave(data$y,as.character(data$x),FUN=function(x)mean(x,na.rm=T))aux = which(is.na(data$y))d

[R] missing values

2007-11-23 Thread lamack lamack
Dear all, there is a best way to do the following task? x = rep(c("A","B"),5) y = rnorm(10) data = data.frame(x,y) data$y[1:2] = c(NA,NA) means = ave(data$y,as.character(data$x),FUN=function(x)mean(x,na.rm=T)) aux = which(is.na(data$y)

[R] enumeration variable by groups

2007-11-14 Thread lamack lamack
Dear all, How can I create an enumeration variable by groups? I have: gender score 1 48 1 45 2 50 2 42 1 41 2 51 1 52 1 43 2 52 and Y would like to get: genderscoreindex 148 1 145 2 141 3

[R] change missing values

2007-10-11 Thread lamack lamack
Dear all, I have a data.frame with 200 variables, where the first is a group variable and the others are numeric variables with missing values. My question is: How can I change simultanely the missing values by the mean of each group? I think in sapply, lapply, but Best regards

[R] table with a weight variable?

2007-10-03 Thread lamack lamack
Dear all, there is an R function do a frequency table considering a weight variable? M A 23 M B 34 F A 23 F B 45 I would like a table like this A B M 23 34 F 23 45 Best regards _ Conheça o Windows