Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread Jim Lemon
Hi again, Just noticed that the NA fill in the original solution is unnecessary, thus: # split the second column at the commas hitsplit<-strsplit(mmdf$hits,",") # get all the sorted hits allhits<-sort(unique(unlist(hitsplit))) tmmdf<-as.data.frame(matrix(NA,ncol=length(hitsplit),nrow=length(allhit

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread Jim Lemon
Hi Matthew, I'm not sure whether you want something like your initial request or David's solution. The result of this can be transformed into the latter: mmdf<-read.table(text="Regulator hits AT1G69490 AT4G31950,AT5G24110,AT1G26380,AT1G05675,AT3G12910,AT5G64905,AT1G22810,AT1G79680,AT3G02840,AT5G2

Re: [R] Survuval Anaysis

2019-05-02 Thread peter dalgaard
Also, please do not include every single other message from a digested list!! And yes, most likely there is a linear dependency between the predictors, or the 3rd one is constant. There could be other possibilities, though. > On 2 May 2019, at 17:44 , Michael Dewey wrote: > > Without more deta

Re: [R] Survuval Anaysis

2019-05-02 Thread Michael Dewey
Without more details it is hard to answer but it is suspicious that it is dropping one of your predictors and the standard errors of the other are very large. This suggests you should investigate the joint distribution of your predictors and the events. Michael On 02/05/2019 13:37, Haddison M

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread David L Carlson
We still have only the toy version of your data from your first email. The second email used dput() as I suggested, but you truncated the results so it is useless for testing purposes. Use the following code after creating DataList (up to mx <- ... ) in my earlier answer: n <- sapply(DataList,

[R] Survuval Anaysis

2019-05-02 Thread Haddison Mureithi
Hello guys this problem was never answered and I happened to come across the same problem , kindly help. This is a simple R program that I have been trying to run. I keep running into the "singular matrix" error. I end up with no sensible results. Can anyone suggest any changes or a way around this

Re: [R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-02 Thread Jeroen Ooms
On Thu, May 2, 2019 at 9:36 AM Martin Maechler wrote: > > > Shuguang Sun > > on Thu, 2 May 2019 12:57:37 +0800 writes: > > > Hi all, > > When I try to compile R 3.6 in windows 10 in Rtools35, it raised the > error message: > > --8<---cut here---star

Re: [R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-02 Thread Martin Maechler
> Shuguang Sun > on Thu, 2 May 2019 12:57:37 +0800 writes: > Hi all, > When I try to compile R 3.6 in windows 10 in Rtools35, it raised the error message: > --8<---cut here---start->8--- > make rsync-extsoft > (mkdir -p ../../ex