- 1. Re: Grouping barplot, y axis in percent (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Mon, 10 Oct 2005 10:20:47 +0100
- Hi Patrick, One solution is as follows: mat1<- table( test$Sex, test$Age) for(i in 1:2) mat1[i,]<- mat1[i,] / sum(mat1[i,]) barplot( mat1, beside=T, space=c(0,1), density=c(0,0), legend=levels(test$S
- /archives/html/s-news/2005-10/msg00023.html (8,736 bytes)
- 2. Re: edit values (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Thu, 18 Aug 2005 14:38:48 +0100
- t
- /archives/html/s-news/2005-08/msg00079.html (7,520 bytes)
- 3. Re: Color code Scatter Plot....... (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Wed, 24 Aug 2005 15:43:51 +0100
- a
- /archives/html/s-news/2005-08/msg00113.html (9,122 bytes)
- 4. Re: positions in string (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Mon, 04 Jul 2005 09:09:59 +0100
- a long string of characters, say symbol, "1". In the example above the result should be: c(6,46,63) 0345602001785466589064143145688001029(123)76415001078453(123)31" Dear Xao, A function that does tha
- /archives/html/s-news/2005-07/msg00005.html (8,734 bytes)
- 5. Re: Find first consecutive pair in vector (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Thu, 07 Jul 2005 08:54:42 +0100
- Dear Andries, A function that does that is: find1<- function(X, b1 = 0, b2 = 200) { <x-tab> </x-tab>s1 <- 1:(length(X) - 1) <x-tab> </x-tab>s2 <- s1 + 1 <x-tab> </x-tab>res1 <- s1[X[s1] > b1 & X[s2]
- /archives/html/s-news/2005-07/msg00026.html (9,008 bytes)
- 6. Re: Random "shuffling" of a dataframe based on a column (score: 1)
- Author: Mario Cortina Borja <M.Cortina@ich.ucl.ac.uk>
- Date: Tue, 26 Jul 2005 16:06:26 +0100
- Dear Sohail, df1[ sample(1:dim(df1)[1]), ] does that, Best wishes, Mario Is there a way to "shuffle" a data frame based on a column. I.E. if the data frame looks like: pos ratio 1 0.2356 2 0.5236 3 1
- /archives/html/s-news/2005-07/msg00137.html (8,402 bytes)
- 7. Re: problem in substring() (score: 1)
- Author: "Mario Cortina Borja" <M.Cortina@ich.ucl.ac.uk>
- Date: Wed, 24 Jan 2007 09:44:12 -0000
- Dear Nora, <o:p></o:p> <o:p> </o:p> Try <o:p></o:p> <o:p> </o:p> as.numeric(substring( a, nchar(y[1])+1, nchar(y[1])+nchar(y[10])))<o:p></o:p> <o:p> </o:p> Best wishes,<o:p></o:p> <o:p> </o:p> Mario<
- /archives/html/s-news/2007-01/msg00042.html (17,333 bytes)
This search system is powered by
Namazu