[R] Extract particular months from List in R

2014-08-02 Thread Zilefac Elvis
Hi ALL, I have a List object in R. The dataframes in the List have equal rows and columns. How can I extract from the List, data corresponding to say c(June, July , August)? Remember, it is a List object, containing 100 dataframes, with daily data arranged by YYMMDD. Thanks for your thoughtful s

[R] How to remove latex message from a resulting rmarkdown pdf?

2014-08-02 Thread Eduardo M. A. M.Mendes
Hello I am using rmarkdown to write the partial results of my research project. Both html and pdf files are used. In the resulting pdf xtable writes the following msg: % latex table generated in R 3.1.1 by xtable 1.7-3 package % Sat Aug 2 21:42:16 2014 How can I remove such a msg? Many th

Re: [R] mutually exclusive events

2014-08-02 Thread John McKown
On Sat, Aug 2, 2014 at 1:11 PM, Adrian Johnson wrote: > Hi: > > I am trying to identify mutually exclusive events from the following > example: > > > Cluster Gene Mutatednot-mutated > 1 G1 1 0 > 1 G2 1 0 >

Re: [R] mutually exclusive events

2014-08-02 Thread John McKown
On Sat, Aug 2, 2014 at 1:11 PM, Adrian Johnson wrote: > Hi: > > I am trying to identify mutually exclusive events from the following > example: > > > Cluster Gene Mutated not-mutated > 1 G1 1 0 > 1 G2 1 0 > 1 G3 0 1 > 1 G4 0 1 > 1 G5 1 0 > 2 G1 0 1 > 2 G2 1 0 > 2 G3 1 0 > 2 G4 0 0 > 2 G5 1 0 > > >

Re: [R] mutually exclusive events

2014-08-02 Thread Bert Gunter
Homework? There is a no homework policy here. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Sat, Aug 2, 2014 at 11:47 AM, Don McKenzie wrote: > David’s

Re: [R] mutually exclusive events

2014-08-02 Thread Don McKenzie
David’s answer assumes a more complicated objective, but obviously we are both unclear as to what you want. Are you trying to find out which clusters have a unique pattern of mutation? (probably all of them, with so few clusters and so many genes?) For either objective, this is not a statistic

Re: [R] mutually exclusive events

2014-08-02 Thread David Winsemius
On Aug 2, 2014, at 11:11 AM, Adrian Johnson wrote: > Hi: > > I am trying to identify mutually exclusive events from the following > example: > #- dat <- read.table(text="Cluster Gene Mutatednot_mutated 1 G1 1 0 1 G2

[R] mutually exclusive events

2014-08-02 Thread Adrian Johnson
Hi: I am trying to identify mutually exclusive events from the following example: Cluster Gene Mutatednot-mutated 1 G1 1 0 1 G2 1 0 1 G3 0 1 1 G4

Re: [R] Multiple plots and postscripts using split function

2014-08-02 Thread William Dunlap
Have you tried using the merge() function? E.g., lapply(split(d, d$NAME), function(di)merge(all=TRUE, di, data.frame(YEAR=seq(min(di$YEAR), max(di$YEAR), by=1 Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Aug 1, 2014 at 8:22 PM, Florian Denzinger wrote: > Thank you everyone for your

Re: [R] How to change print behaviour within a markdown document

2014-08-02 Thread Eduardo M. A. M. Mendes
Dear Duncan Options did the job. Thank you ever so much. I will try the other suggestions too. If they work I will post them as well. Cheers Ed Enviada do meu iPhone > Em 02/08/2014, às 09:26, Duncan Murdoch escreveu: > >> On 01/08/2014, 10:36 PM, Eduardo M. A. M.Mendes wrote: >> Hello >

[R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-02 Thread Charles Novaes de Santana
Dear all, Does anyone know a way to overlay a contourplot and a levelplot of different datasets, both datasets with the same dimension? Let's say I have 2 10x10 grids, like those below: library(lattice) x<-1:10 y<-1:10 grid1<-expand.grid(x=x,y=y) grid2<-expand.grid(x=x,y=y) z1<-grid1$x^2 + grid

Re: [R] How to change print behaviour within a markdown document

2014-08-02 Thread Duncan Murdoch
On 01/08/2014, 10:36 PM, Eduardo M. A. M.Mendes wrote: > Hello > > I have the following chunk of code within a rmarkdown document: > > ```{r infoA, echo=FALSE, tidy=FALSE} > print(pAinfo,quote=FALSE,justify="center") > ``` > pAinfo is data.frame with 21 rows and 4 columns. Unfortunately the resul

Re: [R] Multiple plots and postscripts using split function

2014-08-02 Thread Jim Lemon
On Sat, 2 Aug 2014 05:22:26 AM Florian Denzinger wrote: > Thank you everyone for your help so far. > > I am still working on the problem to get a merged new dataframe which fills > in new rows with NA values for each year that is missing for plotting with > gaps ( in the example the item BARTLEY