Re: [R] Using gutenbergr with a firewall

2018-02-13 Thread Jeff Newmiller
Saying "a firewall" is like saying "a weapon". Some firewalls are much more strict than others, and yours may be different than any someone here might have encountered. You might also be having trouble with anti virus software. -- Sent from my phone. Please excuse my brevity. On February 13,

[R] Using gutenbergr with a firewall

2018-02-13 Thread Patrick Connolly
I can use the gutenberg_download() function in the gutenbergr package on a computer that doeson't use a firewall, but on an almost identical installation that is behind a firewall, nothing happens, not even a time-out. Has anyone succeeded in using gutenberg_download() successfully with a

Re: [R-es] Crear bucle

2018-02-13 Thread Proyecto R-UCA
Buenas: Una forma sin bucles: > data <- read.table("/tmp/a.csv", header=TRUE, sep="", na.strings="NA", dec=".", strip.white=TRUE) > new_zon <- as.numeric(diff(data$Subzona) < 0) > new_zon <- c(1, new_zon) > new_zon <- cumsum(new_zon) > data$new_zon <- new_zon > data Margen Zona Subzona Long

Re: [R] LSmeans and lsmeans

2018-02-13 Thread Pius Mwansa
Thanks Bert. From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Tuesday, February 13, 2018 4:42 PM To: Pius Mwansa Cc: R-help Subject: Re: [R] LSmeans and lsmeans A cursory reading indicates that they are identical; but others more

Re: [R] LSmeans and lsmeans

2018-02-13 Thread Pius Mwansa
It is in the doBy package. Thanks From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Tuesday, February 13, 2018 4:32 PM To: Pius Mwansa Cc: R-help Subject: Re: [R] LSmeans and lsmeans Always cc the list unless there is good reason to keep

[R] Fleming-Harrington weighted log rank test

2018-02-13 Thread array chip via R-help
Hi all,  The survdiff() from survival package has an argument "rho" that implements Fleming-Harrington weighted long rank test.  But according to several sources including "survminer" package

Re: [R] LSmeans and lsmeans

2018-02-13 Thread Bert Gunter
A cursory reading indicates that they are identical; but others more knowledgeable than I need to confirm or deny this. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County"

Re: [R] LSmeans and lsmeans

2018-02-13 Thread Bert Gunter
Always cc the list unless there is good reason to keep your reply private. There is no LSmeans() function in the lsmeans package. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in

Re: [R] LSmeans and lsmeans

2018-02-13 Thread Bert Gunter
In what packages? -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Feb 13, 2018 at 11:17 AM, Pius Mwansa wrote: > Is there a

Re: [R-es] ANOVA factores anidados

2018-02-13 Thread Javier Marcuzzi
Estimada Yesica Pallavicini Fernandez Su problema es de principiante de R, no importa, escriba lo siguiente (?) cada vez que necesita conocer como escribir algo, R la ayuda con algún ejemplo como ser aov(yield ~ block + N * P + K, npk) lo siguiente / tiene un significado ?aov?lm También

[R] Tukey and extracting letters in multcomp

2018-02-13 Thread Rachel S Smith
Hi Lauren, Did you ever receive an answer on this? I’ve been having the same errors, and am stumped, so I’d love to hear how you sorted this out with your models. Thanks for your help! Cheers, Rachel -- Rachel Smith PhD Candidate Odum School of Ecology University of Georgia Athens, GA

[R] Best Optimization Routines

2018-02-13 Thread JamesRyan(Ryan James)/E North America Business Division
I have a set of data, the production of oil from a well.  And an equation to predict that forecast.  The equation requires 5 input variables which are real numbers with upper and lower bounds, 1 input variable which must be an integer and 1 input variable which can be 1 of 2 string variables. 

[R] LSmeans and lsmeans

2018-02-13 Thread Pius Mwansa
Is there a difference between LSmeans and lsmeans functions in R? Thanks, Pius __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R-es] Crear bucle

2018-02-13 Thread Andrés Hirigoyen
Excelente Carlos, muchas gracias. Me maree con [i] en el bucle que hacia. Saludos El 13 de febrero de 2018, 18:38, Carlos Ortega escribió: > Hola, > > Una forma puede ser la siguiente... > Para comparar, he creado una nueva columna "new_zona" que es la que se va >

Re: [R-es] Crear bucle

2018-02-13 Thread Xavier-Andoni Tibau Alberdi
Perdona, toda la razón, no miré bien el problema antes de responder. Seguro que hay una manera más eficiente. Pero yo lo haría con un bucle, luego usas una bariable dummy, digamos zonna_d, que incremente su valor en 1 cada vez que subzona es ==1. Entonces zona = zonna_d. Se entiende? Saludos,

Re: [R-es] Crear bucle

2018-02-13 Thread Andrés Hirigoyen
Xavier el tema que no logro solucionar es pasar de subzona==1 a subzona==2. Probé con ifelse pero me cambia los valores de toda la columan cuando cambia de zona. Gracias por responder El 13 de febrero de 2018, 18:19, Xavier-Andoni Tibau Alberdi< xaviti...@gmail.com> escribió: > Creo que

Re: [R] Suppress horizontal mean line in beanplot()

2018-02-13 Thread Bert Gunter
The package docs seem to provide your answer -- you just need to read them more carefully: See the "what" argument of ?beanplot. Setting the first entry of the vector to 0 would seem to suppress the overall mean. Apologies if I've misread/misinterpreted. Cheers, Bert Bert Gunter "The trouble

Re: [R] Suppress horizontal mean line in beanplot()

2018-02-13 Thread Mohammad Tanvir Ahamed via R-help
hi,  Check this  beanplot(count ~ spray, data = InsectSprays, what = c(FALSE, TRUE, TRUE, TRUE)) >From R function help :  what :  a vector of four booleans describing what to plot. In the following order, these booleans stand for the total average line, the beans, the bean average, and the

Re: [R] [FORGED] Suppress horizontal mean line in beanplot()

2018-02-13 Thread Paul Murrell
Hi Does this do the trick ... ? library(beanplot) beanplot(count ~ spray, data = InsectSprays) library(gridGraphics) grid.echo() grid.remove("abline", grep=TRUE) Paul On 14/02/18 07:31, Samuel Knapp wrote: Hi, I would like to use the beanplot() function from the beanplot package.

Re: [R] plotting the regression coefficients

2018-02-13 Thread greg holly
Hi Petr; Thanks for this. I have used scale_colour_gradient before but could not get what I am looking for. I will check the links you provide to get Idea. Once again thanks for your support and help. Rgerads, Greg On Tue, Feb 13, 2018 at 5:34 PM, PIKAL Petr wrote:

[R] Suppress horizontal mean line in beanplot()

2018-02-13 Thread Samuel Knapp
Hi, I would like to use the beanplot() function from the beanplot package. Unfortunately, I can't find out how to suppress the dashed horizontal line, that shows the overall mean. In the help I've found the argument "overallline", but it only allows for "mean" or "median" . I have tried

[R-es] ANOVA factores anidados

2018-02-13 Thread Yesica Pallavicini Fernandez
En cuanto meter un factor anidado en una ANOVA ¿puede quedar asi? ¿Será mejor usar modelos mixtos en vez de ANOVA? Solo quiero testar la influencia de las repeticiones del ensayo. A<-aov(rto~A*T*y*R*rep/A/T/R,dato)) Gracias [[alternative HTML version deleted]]

Re: [R] plotting the regression coefficients

2018-02-13 Thread PIKAL Petr
Hi scale_colour_gradient(“red”, “blue”) should do the trick. Actually I found it by Google ggplot colour http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/ http://www.sthda.com/english/wiki/ggplot2-colors-how-to-change-colors-automatically-and-manually#gradient-colors-for-scatter-plots question.

Re: [R] plotting the regression coefficients

2018-02-13 Thread PIKAL Petr
Hi Richard Yes you are right, I did not check my answer enough. Cheers Petr > -Original Message- > From: Richard M. Heiberger [mailto:r...@temple.edu] > Sent: Monday, February 12, 2018 6:10 PM > To: PIKAL Petr > Cc: greg holly ; r-help

[R-es] ANOVA, otra pregunta

2018-02-13 Thread Yesica Pallavicini Fernandez
Si recordías, quiero hacer el siguiente modelo. Freddy ya me dió una solución. PEro me surgió otra duda: En el modelo completo, debo meter la repecición ( 3 repeticiones) en el modelo. Estas repeticiones están anidadas repeticion(ByA) ¿Cómo se pone en la función "aov" de R? Mil gracias Y~T, Y~A

Re: [R-es] ANOVA no da el mismo resultado

2018-02-13 Thread Freddy Omar López Quintero
Hola. El mar, 13-02-2018 a las 12:32 +0100, Yesica Pallavicini Fernandez escribió: > 1) en anova2 quiero testar el modelo > > Y~T, > Y~A > Y~B > Y~TxA > Y~AxB > Y~AxBxT > ¿Está bien planteada la función? anova2<-lm(d$Y~d$T*d$A*d$B) > > 2) En la salida de ambas anovas, el resultado es diferente

[R-es] ANOVA no da el mismo resultado

2018-02-13 Thread Yesica Pallavicini Fernandez
Hola, He realizado 2 anovas, una simple y la otra multifactorial anova1<-lm(d$Y~d$T) anova2<-lm(d$Y~d$T*d$A*d$B) Las preguntas son: 1) en anova2 quiero testar el modelo Y~T, Y~A Y~B Y~TxA Y~AxB Y~AxBxT ¿Está bien planteada la función? anova2<-lm(d$Y~d$T*d$A*d$B) 2) En la salida de ambas

Re: [R] Syntax highlighting

2018-02-13 Thread Loris Bennett
Hi Sigbert, Sigbert Klinke writes: > Hi, > > I would like know if there are any plans for some "standardized" > syntax highlighting of R code? > > * Currently I'm using minted for my LaTeX slides with pygmentize and I > do not know what scheme is used for highlighting

Re: [R-es] problema de fechas

2018-02-13 Thread Patricio Suárez Gil
Muchas gracias a todos por vuestra ayuda. La solución que propone Carlos Ortega me funciona perfectamente. Gracias mil, Carlos. Patricio Suárez Gil Unidad de Investigación Área V-Gijón Planta 5ª Impar Hospital Universitario de Cabueñes C/Prado, 395 33394 Gijón (Asturias) Tfno: 985 185 000

Re: [R-es] problema de fechas

2018-02-13 Thread Carlos Ortega
Hola, Sí, en el ejemplo de la ayuda de "ifelse" se advierte de este problema y ofrece dos alternativas: una la que he propuesto y otra. Con cualquiera de las dos el problema se resuelve. ## ifelse() strips attributes ## This is important when working with Dates and factors x <-

[R] Syntax highlighting

2018-02-13 Thread Sigbert Klinke
Hi, I would like know if there are any plans for some "standardized" syntax highlighting of R code? * Currently I'm using minted for my LaTeX slides with pygmentize and I do not know what scheme is used for highlighting the R code. * RStudio uses (as default) TextMate (Text editor for MacOS)