Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
On 24/09/14 16:13, Sohail Khan wrote: > Dear All, > > I have clustered a patient data set by agnes. > > I want to extract information for each cluster, I.E. all row ids > belonging to each cluster. Fascinating, thank you...
To improve my R skills I try to understand some R code written by others. Mostly I am looking at the code of packages I use. Today I looked at the code for the caret package http://cran.r-project...
I have a daily generated report in which I put a check using stopifnot. Unfortunately I didn?t check the effect very well, turns out that if the condition checked fails this is not shown in the knitr output (I...
On 19 Jun 2014, at 15:42, message <letter at openmailbox.org> wrote: > Readers, > > For data set: > > a, 90, 10 > b, 60, 40 > c, , > d, , 50 > > A plot was attempted: Wonder who attempted this. :-) > > dataset<-as.matrix(read.csv("datafile...
On 19 Jun 2014, at 13:19, carol white <wht_crl at yahoo.com> wrote: > Hi, > Is there a way to extract a subset of non-contiguous elements of a matrix elegantly and with 1 or very few scripts? > > Suppose...
On 22 Aug 2014, at 12:39, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 22/08/2014, 6:02 AM, Bart Kastermans wrote: >> I have a daily generated report in which I put a check using stopifnot. Unfortunately...
On 27/10/14 19:42, Camilo Mora wrote: > Hi Bart, > > Even after putting the variables in the apply function, the results come not right: > > library (alphahull) > DT=data.frame(x=c(0.25,0.25,0.75,0.75...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 8/5/13 1:00 PM, Anindya Sankar Dey wrote: > Hi All, > > I applied the naiveBayes function in e1071 package with the iris > data, and here's the list that was created > > structure...
On 27/10/14 06:05, Camilo Mora wrote: > Hi everyone, > > I have a two column (x,y) database with say 20 million rows. I want to check the points that are inside of a hull created with the package...
Thanks Max and Duncan for the replies. To Max in particular I would say that ready code written in possibly non-optimal style (though I did not read enough of caret to have an opinion on that code in particular...
For readability I like: > b <- c(0,a[-length(a)]) > which(a != b & a == 0) [1] 4 12 18 > which(a != b & a == 1) [1] 1 6 16 23 On 07 Aug 2014, at 17:23, William Dunlap <wdunlap at...
Better: b <- c(a[1]-1,a[-length(a)]) On 07 Aug 2014, at 17:28, Bart Kastermans <kasterma at kasterma.net> wrote: > For readability I like: > >> b <- c(0,a[-length(a)]) >> which(a != b & a == 0) > [1] 4...
If you give an example of input and desired output I can think about this. But at this point I do not understand what you want. In the example I gave the positive elements do not form a submatrix in...
On 19 Jun 2014, at 15:16, carol white <wht_crl at yahoo.com> wrote: > tm.1=rbind(c(1,-3,2,-4), c(1,-3,2,-4),c(1,-3,2,-4)) > > > which(tm.1 > 0, arr.ind=TRUE...
Can't find what you're looking for? Try searching with Google .