Re: [R] Plot Rect Transparency

2018-06-28 Thread Jeff Reichman
Duncan Thanks I was able to find it in the help doc. x <- c(1,2,4,6,8,9,10,12,13,14,18,20) y <- c(4,5,3,6,7,4,8,9,12,4,7,5) mydata <- data.frame(x,y) plot(mydata) rect(5,0,8,8, col=rgb(0,1,0,alpha=0.2), border=F) -Original Message- From: Duncan Murdoch Sent: Thursday, June 28, 2018

Re: [R] Plot Rect Transparency

2018-06-28 Thread Duncan Murdoch
On 28/06/2018 5:29 PM, Jeff Reichman wrote: R-Help Is there a way to make a rectangle transparent (alpha=0.1??) plot(c(100, 200), c(300, 450), type= "n", xlab = "", ylab = "") rect(110, 300, 175, 350, density = 5, border = "red") Can't figure out how to take the

Re: [R] trouble with exiting loop if condition is met

2018-06-28 Thread Jim Lemon
Hi Kelly, You seem to be testing the two "years" independently, so here is a possible solution: npg<-16 futility1<-futility2<-psignif1<-psignif2<-nrep<-0 while(!futility1 && !futility2 && !psignif1 && !psignif2 && nrep < 1) { control_respond1<-sum(runif(npg,0,1) < 0.05)

Re: [R] Unable to return gmtoff from as.POSIXlt without converting date string to as.POSIXct first

2018-06-28 Thread Jeff Newmiller
Read ?DateTimeClasses regarding gmtoff. In short, it is implementation-dependent. On June 28, 2018 10:58:13 AM PDT, Sam Albers wrote: >Is it possible for someone to explain what is going on here? I would >expect >that `as.POSIXlt` would be able to accept `datestring` and return all >the

Re: [R] trouble with exiting loop if condition is met

2018-06-28 Thread MacQueen, Don via R-help
Does this example help? > for (ii in 1:10) { cat( ii,'\n') ; if (ii >3) break } 1 2 3 4 The loop won't stop unless you tell it to stop, and I don't see any place where you told it to stop. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550

[R] Plot Rect Transparency

2018-06-28 Thread Jeff Reichman
R-Help Is there a way to make a rectangle transparent (alpha=0.1??) plot(c(100, 200), c(300, 450), type= "n", xlab = "", ylab = "") rect(110, 300, 175, 350, density = 5, border = "red") Can't figure out how to take the changepoint function results and plot in ggplot2 so I can

[R] trouble with exiting loop if condition is met

2018-06-28 Thread Kelly Wu
I am working on a clinical trial simulation with two groups, treatment and placebo, and the outcome is dichotomous (recovery or no recovery) . I would like to stop my loop if either of my conditions are met: 1) futility - there are no responses to treatment in the treatment group. 2) the p-value

[R-es] Grupo Usuarios de R de Madrid - Reunión miércoles 27-junio....

2018-06-28 Thread Carlos Ortega
Buenas a todos, Ayer mantuvimos la reunión del Grupo de Usuarios de R de Madrid (la 53). Aquí podéis encontrar el link al video de la presentación. http://madrid.r-es.org/53-miercoles-27-de-junio-2018/ ​Gracias, Carlos Ortega www.qualityexcellence.es​ [[alternative HTML version

[R] Unable to return gmtoff from as.POSIXlt without converting date string to as.POSIXct first

2018-06-28 Thread Sam Albers
Is it possible for someone to explain what is going on here? I would expect that `as.POSIXlt` would be able to accept `datestring` and return all the elements without having to convert it using `as.POSIXct` first. Do `as.POSIXlt` and `as.POSIXct` do different things with the `tz` arg? datestring

[R] Trouble with tibbles

2018-06-28 Thread Juan Telleria Ruiz de Aguirre
Factor Data Type, indeed, is of typeof() Numeric. Try converting that column to character with as.character() Class transformation then must work :) Juan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

Re: [R] parallel computing in r....

2018-06-28 Thread Juan Telleria Ruiz de Aguirre
Maybe this R-bloggers post could also help you: https://www.google.es/amp/s/www.r-bloggers.com/implementing-parallel-processing-in-r/amp/ https://www.google.es/amp/s/www.r-bloggers.com/a-guide-to-parallelism-in-r/amp/ [[alternative HTML version deleted]]

Re: [R-es] suma del resultado de multiplicar fila x columna

2018-06-28 Thread Manuel Mendoza
Gracias, Marcelino y Carlos. Quoting Marcelino de la Cruz Rot : En concreto, Abund%*%Dieta El 28/06/2018 a las 14:46, Carlos J. Gil Bellosta escribió: Eso que cuentas se llama multiplicación matricial. Usa %*%. El jue., 28 jun. 2018 14:37, Manuel Mendoza escribió: Buenas tardes, tengo

Re: [R] Adding lines to the page

2018-06-28 Thread Stats Student
Didn't know about linesGrob(). Thanks On Wed, Jun 27, 2018, 4:38 PM Bert Gunter wrote: > "Considering that there are ways to add text on a page through textGrobs.." > > ... and the linesGrob() function would do the same for lines, no? > > Cheers, > Bert > > > > Bert Gunter > > "The trouble

Re: [R-es] suma del resultado de multiplicar fila x columna

2018-06-28 Thread Marcelino de la Cruz Rot
En concreto, Abund%*%Dieta El 28/06/2018 a las 14:46, Carlos J. Gil Bellosta escribió: Eso que cuentas se llama multiplicación matricial. Usa %*%. El jue., 28 jun. 2018 14:37, Manuel Mendoza escribió: Buenas tardes, tengo 2 dfs: Dieta de (108x11) y Abund de (591x108). Necesito multiplicar

Re: [R-es] suma del resultado de multiplicar fila x columna

2018-06-28 Thread Carlos J. Gil Bellosta
Eso que cuentas se llama multiplicación matricial. Usa %*%. El jue., 28 jun. 2018 14:37, Manuel Mendoza escribió: > > Buenas tardes, tengo 2 dfs: Dieta de (108x11) y Abund de (591x108). > Necesito multiplicar cada columna de la 1ª (108 > >

[R-es] suma del resultado de multiplicar fila x columna

2018-06-28 Thread Manuel Mendoza
Buenas tardes, tengo 2 dfs: Dieta de (108x11) y Abund de (591x108). Necesito multiplicar cada columna de la 1ª (108 elementos) por cada fila de la 2ª (108 elementos) y crear una nueva df con las sumas de esas multiplicaciones. He hecho esto, pero no sale y creo que está lejos de estar

[R] CARET PACKAGE - PENALISED MULTINOMIAL REGRESSION MODEL

2018-06-28 Thread Triparna Poddar
Hi, In the Caret package, in one of the training model method for classification , penalised multinomial regression has been used? I could not find anywhere how the penalised parameters have been chosen here . I need the statistical methods that have been used. Can someone please help me?

Re: [R] R examples in Agronomy

2018-06-28 Thread mikorym via R-help
> Dear all, > Are there good R stat examples in the field of agronomy (especially field > experiments)? > Thanks > /- > Khaled IBRAHIMI, PhD > Assistant Professor, Soil Science & Environment > Higher Institute of

Re: [R-es] error en un cmeans

2018-06-28 Thread Manuel Mendoza
Gracias Jorge I, Marcelino dió con la clave; una chorrada. Manuel Quoting Jorge I Velez : Manuel, Mira https://www.rdocumentation.org/packages/e1071/versions/1.6-8/topics/cmeans No debes incluir “i” en cmeans(). Saludos, Jorge.- Sent from my phone. Please excuse my brevity and misspeling.

Re: [R-es] error en un cmeans

2018-06-28 Thread Manuel Mendoza
Gracias Marcelino; a partir de 2 funciona, claro. Copié el for de otra cosa y no caí en que i debe empezar en 2, claro. Un cluster con un solo grupo no tiene sentido. Manuel Quoting Marcelino de la Cruz Rot : Parece que a cmeans() no le gusta que el número de clusters ("i" en tu