[R] Convert list of data frames to one data frame

2018-06-28 Thread Ira Sharenow via R-help
I have a list of data frames which I would like to combine into one data frame doing something like rbind. I wish to combine in column order and not by names. However, there are issues. The number of columns is not the same for each data frame. This is an intermediate step to a problem and the

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 changepo

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) control_respond2<-sum

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 >elemen

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 925-42

[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 just

[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 i

[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 UNSUBSCR

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] 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 wit

[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? Tha

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 Agric